Esempio n. 1
0
 public BossController GetBossController()
 {
     if (bossController == null)
     {
         bossController = FindObjectOfType <BossController>();
     }
     return(bossController);
 }
Esempio n. 2
0
        void Awake()
        {
            player        = GameManager.Instance.GetPlayerController();
            player.Dying += PlayerDyingEventHandler;

            boss = GameManager.Instance.GetBossController();

            SceneManager.sceneUnloaded -= OnSceneUnloadedHandler;
            SceneManager.sceneUnloaded += OnSceneUnloadedHandler;
        }