32 lines
698 B
C#
32 lines
698 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CutsceneLookAt : MonoBehaviour
|
|
{
|
|
private Animator _animator;
|
|
[SerializeField] private Transform _carier;
|
|
[SerializeField] private string _animation;
|
|
[SerializeField] private EndGameModule _gameModule;
|
|
private void Awake()
|
|
{
|
|
_animator = GetComponent<Animator>();
|
|
}
|
|
|
|
public void StartCutscene()
|
|
{
|
|
_animator.Play(_animation);
|
|
_carier.parent = transform;
|
|
}
|
|
|
|
public void StopCutscene()
|
|
{
|
|
_gameModule.ShowEndMenu(true);
|
|
}
|
|
|
|
public void PlaySound()
|
|
{
|
|
FindObjectOfType<MonumentController>().ShowPreview();
|
|
}
|
|
}
|