36 lines
902 B
C#
36 lines
902 B
C#
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
|
|
public class PlayerJumpScaresManager : MonoBehaviour
|
|
{
|
|
[Header("John Jump Scares")]
|
|
[SerializeField] PlayableDirector _JohnSpittingBloodJumpScare;
|
|
|
|
[Header("Medea Jump Scares")]
|
|
[SerializeField] PlayableDirector _MedeaBasementJumpScareChildrenLoop;
|
|
|
|
private static PlayerJumpScaresManager _instance;
|
|
public static PlayerJumpScaresManager GetInstance() { return _instance; }
|
|
|
|
private void Awake()
|
|
{
|
|
if (!_instance)
|
|
{
|
|
_instance = this;
|
|
}
|
|
|
|
}
|
|
|
|
public void PlayJohnSpittingBloodJumpScare()
|
|
{
|
|
_JohnSpittingBloodJumpScare.Play();
|
|
print("Playing John Spitting Blood Jump Scare");
|
|
}
|
|
|
|
public void PlayMedeaBasementJumpScareChildrenLoops()
|
|
{
|
|
_MedeaBasementJumpScareChildrenLoop.Play();
|
|
print("Playing Medea Basement Jump Scare");
|
|
}
|
|
}
|