26 lines
462 B
C#
26 lines
462 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CutsceneLookAt : MonoBehaviour
|
|
{
|
|
private Animator _animator;
|
|
[SerializeField]
|
|
private string _animation;
|
|
|
|
private void Awake()
|
|
{
|
|
_animator = GetComponent<Animator>();
|
|
}
|
|
|
|
public void StartCutscene()
|
|
{
|
|
_animator.Play(_animation);
|
|
}
|
|
|
|
public void EndCutscene()
|
|
{
|
|
GameManager.Instance.OnFinish();
|
|
}
|
|
}
|