rabidus-test/Assets/Scripts/CutsceneLookAt.cs

24 lines
430 B
C#
Raw Normal View History

2023-09-11 15:44:17 +03:00
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");
}
}