示例#1
0
    void Awake()
    {
        playerRank       = this.GetComponent <PlayerRank> ();
        troopRank        = this.GetComponent <TroopRank> ();
        territoryRank    = this.GetComponent <TerritoryRank> ();
        soldierBonusRank = this.GetComponent <SoldierBonusRank> ();

        scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
        phases       = scriptHolder.GetComponent <Phases> ();
    }
示例#2
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>();
    }
示例#3
0
 void Awake()
 {
     territoryBonus   = this.GetComponent <TerritoryBonus> ();
     continentBonus   = this.GetComponent <ContinentBonus> ();
     soldierBonusRank = this.GetComponent <SoldierBonusRank> ();
 }