Ejemplo n.º 1
0
 // Called before start
 void Awake()
 {
     base.Awake();
     player           = FindObjectOfType <PlayerCharacter>();
     clock            = FindObjectOfType <Clock>();
     scoreGoalManager = FindObjectOfType <ScoreGoalManager>();
 }
Ejemplo n.º 2
0
    // Called before start
    private void Awake()
    {
        gameplayUiRef = FindObjectOfType <GameplayUi>();
        gameOverUiRef = FindObjectOfType <GameOverUi>();

        player           = FindObjectOfType <PlayerCharacter>();
        clock            = FindObjectOfType <Clock>();
        targetManager    = FindObjectOfType <TargetManager>();
        scoreGoalManager = FindObjectOfType <ScoreGoalManager>();
    }