Ejemplo n.º 1
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> ();
 }
Ejemplo n.º 2
0
    void Awake()
    {
        scriptHolder      = GameObject.FindGameObjectWithTag("ScriptHolder");
        countryManagement = scriptHolder.GetComponent <CountryManagement> ();
        soldierManagement = scriptHolder.GetComponent <SoldierManagement> ();
        playerTurn        = scriptHolder.GetComponent <PlayerTurn> ();
        phases            = scriptHolder.GetComponent <Phases> ();

        territories = GameObject.FindGameObjectWithTag("Territories");
        troopCount  = territories.GetComponent <TroopCount> ();
    }
Ejemplo n.º 3
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>();
    }
Ejemplo n.º 4
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> ();
    }
Ejemplo n.º 5
0
    // Use this for initialization
    void Awake()
    {
        territories    = GameObject.FindGameObjectWithTag("Territories");
        troopCount     = territories.GetComponent <TroopCount> ();
        boardSetUp     = territories.GetComponent <BoardSetUp> ();
        changeCategory = territories.GetComponent <ChangeCatagory> ();

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

        countryManagement = this.GetComponent <CountryManagement> ();
        playerTurn        = this.GetComponent <PlayerTurn> ();
        teamChecker       = this.GetComponent <TeamChecker> ();
        phases            = this.GetComponent <Phases> ();
        globalFunctions   = this.GetComponent <GlobalFunctions> ();
    }
Ejemplo n.º 6
0
    void Awake()
    {
        countryManagement = this.GetComponent <CountryManagement> ();
        phases            = this.GetComponent <Phases> ();
        teamChecker       = this.GetComponent <TeamChecker> ();
        playerTurn        = this.GetComponent <PlayerTurn> ();
        deploySoldiers    = this.GetComponent <DeploySoldiers> ();
        attack            = this.GetComponent <Attack> ();
        audioFadeOut      = this.GetComponent <AudioFadeOut> ();

        territories = GameObject.FindGameObjectWithTag("Territories");
        troopCount  = territories.GetComponent <TroopCount> ();

        GUI           = GameObject.FindGameObjectWithTag("GUI");
        displayEditor = GUI.GetComponent <DisplayEditor> ();
        receiveBonus  = GUI.GetComponent <ReceiveBonus> ();
        buttonColour  = GUI.GetComponent <ButtonColour> ();
    }
Ejemplo n.º 7
0
 void Awake()
 {
     playerRank = this.GetComponent <PlayerRank> ();
     troopCount = this.GetComponent <TroopCount> ();
     boardSetUp = this.GetComponent <BoardSetUp> ();
 }