Esempio n. 1
0
    void Awake()
    {
        territoryCount = this.GetComponent <TerritoryCount> ();
        soldierBonus   = this.GetComponent <SoldierBonus> ();

        territories = GameObject.FindGameObjectWithTag("Territories");
        boardSetUp  = territories.GetComponent <BoardSetUp> ();
    }
Esempio n. 2
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> ();
 }
Esempio n. 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>();
    }
Esempio n. 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>();
    }
Esempio n. 5
0
    void Awake()
    {
        countryManagement = this.GetComponent <CountryManagement> ();
        armyManagement    = this.GetComponent <ArmyManagement> ();
        soldierTransfer   = this.GetComponent <SoldierTransfer> ();

        territories    = GameObject.FindGameObjectWithTag("Territories");
        territoryCount = territories.GetComponent <TerritoryCount> ();
        continentBonus = territories.GetComponent <ContinentBonus> ();

        GUI              = GameObject.FindGameObjectWithTag("GUI");
        buttonColour     = GUI.GetComponent <ButtonColour> ();
        gameInstructions = GUI.GetComponent <GameInstructions> ();
    }
Esempio n. 6
0
    void Awake()
    {
        GUI               = GameObject.FindGameObjectWithTag("GUI");
        receiveBonus      = GUI.GetComponent <ReceiveBonus> ();
        gameInstructions  = GUI.GetComponent <GameInstructions> ();
        buttonColour      = GUI.GetComponent <ButtonColour> ();
        openingDeployment = GUI.GetComponent <OpeningDeployment> ();
        endGame           = GUI.GetComponent <EndGame>();
        displayEditor     = GUI.GetComponent <DisplayEditor>();

        territories    = GameObject.FindGameObjectWithTag("Territories");
        territoryCount = territories.GetComponent <TerritoryCount> ();

        playerTurn     = this.GetComponent <PlayerTurn> ();
        deploySoldiers = this.GetComponent <DeploySoldiers> ();
        armyMovement   = this.GetComponent <ArmyMovement> ();
    }
Esempio n. 7
0
 void Awake()
 {
     playerRank     = this.GetComponent <PlayerRank> ();
     territoryCount = this.GetComponent <TerritoryCount> ();
 }