Exemplo n.º 1
0
    private void Intialise()
    {
        MenuScreen     = GameObjectUtilities.GetChildComponent <UIMenuController> (this.transform);
        GameScreen     = GameObjectUtilities.GetChildComponent <UIGameController> (this.transform);
        PauseScreen    = GameObjectUtilities.GetChildComponent <UIPauseController> (this.transform);
        GameOverScreen = GameObjectUtilities.GetChildComponent <UIGameOverController> (this.transform);

        EventManager.OnStateChanged += OnStateSwitched;
    }
 private void Awake()
 {
     instance = this;
 }