Example #1
0
 public void Sacrifice()
 {
     Player.Get().Cult.SacrificeHuman(this);
     this.interactable.onLeave.Invoke();
     this.gameObject.SetActive(false);
     GameHub.PlayCutscene(GameHub.SacrificeCutscene);
 }
 private void OnEnable()
 {
     if (Player.Get() != null &&
         Player.Get().Cult.Glory == 9)
     {
         GameHub.PlayCutscene(GameHub.EndCutscene);
     }
 }
Example #3
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (Application.isPlaying &&
                GUILayout.Button("WIN GAME"))
            {
                GameHub.PlayCutscene(GameHub.EndCutscene);
            }
        }
Example #4
0
 public void Awake()
 {
     _instance = this;
 }