rabidus-test/Assets/FinishController.cs

22 lines
486 B
C#
Raw Normal View History

2023-09-05 17:38:11 +03:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FinishController : MonoBehaviour
{
private ShipPathFollower _follower;
private CutsceneLookAt _cutsceneLook;
private void Awake()
{
_follower = FindObjectOfType<ShipPathFollower>();
_cutsceneLook = FindObjectOfType<CutsceneLookAt>();
}
public void StartCustcene()
{
_follower.CutsceneMovement();
_cutsceneLook.StartLook();
}
}