示例#1
0
    void Awake()
    {
        scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
        attack       = scriptHolder.GetComponent <Attack> ();

        boardSetUp     = this.GetComponent <BoardSetUp> ();
        territoryBonus = this.GetComponent <TerritoryBonus> ();
        territoryRank  = this.GetComponent <TerritoryRank> ();
    }
示例#2
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> ();
    }
示例#3
0
    private void Awake()
    {
        territories    = GameObject.FindGameObjectWithTag("Territories");
        territoryRank  = territories.GetComponent <TerritoryRank>();
        territoryCount = territories.GetComponent <TerritoryCount>();

        scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
        playerTurn   = scriptHolder.GetComponent <PlayerTurn>();

        buttonColour = this.GetComponent <ButtonColour>();
    }
示例#4
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>();
    }