rabidus-test/Assets/Scripts/CutsceneLookAt.cs

24 lines
430 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CutsceneLookAt : MonoBehaviour
{
private Animator _animator;
private void Awake()
{
_animator = GetComponent<Animator>();
}
public void StartCutscene()
{
_animator.Play("Monument_1");
}
public void EndCutscene()
{
BNG.SceneLoader.Instance.LoadScene("ResultScene");
}
}