rabidus-test/Assets/Scripts/FinishController.cs

26 lines
677 B
C#

using Dreamteck.Splines;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FinishController : MonoBehaviour
{
private ShipMoveSides _moveSides;
private MonumentController _monumentController;
private vTimerCounter _vTimerCounter;
private void Awake()
{
_moveSides = FindObjectOfType<ShipMoveSides>();
_vTimerCounter = FindObjectOfType<vTimerCounter>();
_monumentController = FindObjectOfType<MonumentController>();
}
public void StartCustcene()
{
_vTimerCounter.StopTimer();
_moveSides.ToggleInput(false);
_monumentController.UnlockMonument();
}
}