rabidus-test/Assets/Scripts/FinishController.cs

30 lines
810 B
C#

using BNG;
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;
[SerializeField] private Grabbable _wheel;
private void Awake()
{
_moveSides = FindObjectOfType<ShipMoveSides>();
_vTimerCounter = FindObjectOfType<vTimerCounter>();
_monumentController = FindObjectOfType<MonumentController>();
}
public void StartCustcene()
{
_wheel.ForceRelease();
_wheel.gameObject.SetActive(false);
_vTimerCounter.StopTimer();
_moveSides.ToggleInput(false);
_monumentController.UnlockMonument();
}
}