private void GetReferences()
 {
     weaponSelectionPhase = GetComponent <WeaponSelectionPhase>();
     paradePhase          = GetComponent <ParadePhase>();
     joustPhase           = GetComponent <JoustPhase>();
     intermissionPhase    = GetComponent <IntermissionPhase>();
     endPhaseScript       = GetComponent <EndPhase>();
 }
Ejemplo n.º 2
0
    void Start()
    {
        stateMachine = GetComponent <StateMachine>();
        setupPhase   = GetComponent <SetupPhase>();
        enemyPhase   = GetComponent <EnemyPhase>();
        buildPhase   = GetComponent <IntermissionPhase>();

        patioHealth            = GameObject.FindGameObjectWithTag("Patio").GetComponent <Health>();
        player                 = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
        stateMachine.nextPhase = setupPhase; //set the default phase
        musicPlayer            = GetComponent <AudioSource>();
    }