Пример #1
0
 void Awake()
 {
     scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
     teamChecker  = scriptHolder.GetComponent <TeamChecker> ();
     playerTurn   = scriptHolder.GetComponent <PlayerTurn> ();
     soldierBonus = this.GetComponent <SoldierBonus> ();
 }
Пример #2
0
    void Awake()
    {
        territoryCount = this.GetComponent <TerritoryCount> ();
        soldierBonus   = this.GetComponent <SoldierBonus> ();

        territories = GameObject.FindGameObjectWithTag("Territories");
        boardSetUp  = territories.GetComponent <BoardSetUp> ();
    }
Пример #3
0
 void Awake()
 {
     troopCount     = this.GetComponent <TroopCount> ();
     territoryCount = this.GetComponent <TerritoryCount> ();
     territoryBonus = this.GetComponent <TerritoryBonus> ();
     continentBonus = this.GetComponent <ContinentBonus> ();
     soldierBonus   = this.GetComponent <SoldierBonus> ();
     playerRank     = this.GetComponent <PlayerRank> ();
     boardSetUp     = this.GetComponent <BoardSetUp> ();
 }
Пример #4
0
    void Awake()
    {
        territories  = GameObject.FindGameObjectWithTag("Territories");
        soldierBonus = territories.GetComponent <SoldierBonus> ();

        GUI          = GameObject.FindGameObjectWithTag("GUI");
        receiveBonus = GUI.GetComponent <ReceiveBonus> ();
        buttonColour = GUI.GetComponent <ButtonColour> ();

        phases     = this.GetComponent <Phases> ();
        playerTurn = this.GetComponent <PlayerTurn> ();
    }
Пример #5
0
    void Awake()
    {
        territoryRank    = this.GetComponent <TerritoryRank> ();
        territoryCount   = this.GetComponent <TerritoryCount> ();
        troopRank        = this.GetComponent <TroopRank> ();
        troopCount       = this.GetComponent <TroopCount> ();
        soldierBonusRank = this.GetComponent <SoldierBonusRank> ();
        soldierBonus     = this.GetComponent <SoldierBonus> ();

        scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
        teamChecker  = scriptHolder.GetComponent <TeamChecker>();
        playerTurn   = scriptHolder.GetComponent <PlayerTurn>();
    }
Пример #6
0
 void Awake()
 {
     soldierBonus = this.GetComponent <SoldierBonus> ();
     playerRank   = this.GetComponent <PlayerRank> ();
 }