示例#1
0
 void Awake()
 {
     armyMovement      = this.GetComponent <ArmyMovement> ();
     linkedTerritories = this.GetComponent <LinkedTerritories> ();
     countryManagement = this.GetComponent <CountryManagement> ();
     globalFunctions   = this.GetComponent <GlobalFunctions> ();
     phases            = this.GetComponent <Phases> ();
 }
示例#2
0
    void Awake()
    {
        territories = GameObject.FindGameObjectWithTag("Territories");
        troopCount  = territories.GetComponent <TroopCount> ();

        GUI = GameObject.FindGameObjectWithTag("GUI");
        gameInstructions = GUI.GetComponent <GameInstructions> ();
        buttonColour     = GUI.GetComponent <ButtonColour> ();
        displayEditor    = GUI.GetComponent <DisplayEditor> ();

        phases            = this.GetComponent <Phases> ();
        countryManagement = this.GetComponent <CountryManagement> ();
        addSoldier        = this.GetComponent <AddSoldier> ();
        linkedTerritories = this.GetComponent <LinkedTerritories> ();
        playerTurn        = this.GetComponent <PlayerTurn> ();
        teamChecker       = this.GetComponent <TeamChecker> ();
    }