Пример #1
0
 void Awake()
 {
     scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
     teamChecker  = scriptHolder.GetComponent <TeamChecker> ();
     boardSetUp   = this.GetComponent <BoardSetUp> ();
     troopRank    = this.GetComponent <TroopRank> ();
 }
Пример #2
0
 void Awake()
 {
     scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
     teamChecker  = scriptHolder.GetComponent <TeamChecker> ();
     playerTurn   = scriptHolder.GetComponent <PlayerTurn> ();
     soldierBonus = this.GetComponent <SoldierBonus> ();
 }
Пример #3
0
    void Awake()
    {
        targetingNetwork = this.GetComponent <TargetingNetwork> ();
        teamChecker      = this.GetComponent <TeamChecker> ();

        GUI = GameObject.FindGameObjectWithTag("GUI");
        gameInstructions = GUI.GetComponent <GameInstructions> ();
    }
Пример #4
0
 void Awake()
 {
     teamChecker       = this.GetComponent <TeamChecker> ();
     countryManagement = this.GetComponent <CountryManagement> ();
     targetingNetwork  = this.GetComponent <TargetingNetwork> ();
     attack            = this.GetComponent <Attack> ();
     globalFunctions   = this.GetComponent <GlobalFunctions> ();
     phases            = this.GetComponent <Phases> ();
     movementPhase     = this.GetComponent <MovementPhase> ();
 }
Пример #5
0
    void Awake()
    {
        scriptHolder      = GameObject.FindGameObjectWithTag("ScriptHolder");
        countryManagement = scriptHolder.GetComponent <CountryManagement> ();
        teamChecker       = scriptHolder.GetComponent <TeamChecker> ();
        playerTurn        = scriptHolder.GetComponent <PlayerTurn> ();

        GUI = GameObject.FindGameObjectWithTag("GUI");
        gameInstructions = GUI.GetComponent <GameInstructions> ();
    }
Пример #6
0
    void Awake()
    {
        territories = GameObject.FindGameObjectWithTag("Territories");
        playerRank  = territories.GetComponent <PlayerRank> ();
        boardSetUp  = territories.GetComponent <BoardSetUp> ();

        scriptHolder     = GameObject.FindGameObjectWithTag("ScriptHolder");
        allocateSoldiers = scriptHolder.GetComponent <AllocateSoldiers> ();
        teamChecker      = scriptHolder.GetComponent <TeamChecker> ();
    }
Пример #7
0
    void Awake()
    {
        GUI              = GameObject.FindGameObjectWithTag("GUI");
        displayEditor    = GUI.GetComponent <DisplayEditor> ();
        buttonColour     = GUI.GetComponent <ButtonColour> ();
        gameInstructions = GUI.GetComponent <GameInstructions> ();

        scriptHolder      = GameObject.FindGameObjectWithTag("ScriptHolder");
        teamChecker       = scriptHolder.GetComponent <TeamChecker> ();
        attack            = scriptHolder.GetComponent <Attack> ();
        countryManagement = scriptHolder.GetComponent <CountryManagement> ();
    }
Пример #8
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>();
    }
Пример #9
0
    void Awake()
    {
        scriptHolder     = GameObject.FindGameObjectWithTag("ScriptHolder");
        allocateSoldiers = scriptHolder.GetComponent <AllocateSoldiers> ();
        targetCountry    = scriptHolder.GetComponent <TargetCountry> ();
        phases           = scriptHolder.GetComponent <Phases> ();
        armyMovement     = scriptHolder.GetComponent <ArmyMovement> ();
        playerTurn       = scriptHolder.GetComponent <PlayerTurn> ();
        audioFadeOut     = scriptHolder.GetComponent <AudioFadeOut> ();
        teamChecker      = scriptHolder.GetComponent <TeamChecker> ();

        GUI           = GameObject.FindGameObjectWithTag("GUI");
        displayEditor = GUI.GetComponent <DisplayEditor> ();
        buttonColour  = GUI.GetComponent <ButtonColour> ();
    }
Пример #10
0
    void Awake()
    {
        GUI = GameObject.FindGameObjectWithTag("GUI");
        gameInstructions = GUI.GetComponent <GameInstructions> ();
        displayEditor    = GUI.GetComponent <DisplayEditor> ();

        targetingNetwork  = this.GetComponent <TargetingNetwork> ();
        armyManagement    = this.GetComponent <ArmyManagement>();
        countryManagement = this.GetComponent <CountryManagement> ();
        takeControl       = this.GetComponent <TakeControl> ();
        diceRoll          = this.GetComponent <DiceRoll>();
        phases            = this.GetComponent <Phases> ();
        teamChecker       = this.GetComponent <TeamChecker> ();
        targetCountry     = this.GetComponent <TargetCountry> ();
        audioFadeOut      = this.GetComponent <AudioFadeOut> ();
    }
Пример #11
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> ();
    }
Пример #12
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> ();
    }
Пример #13
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> ();
    }
Пример #14
0
    void Awake()
    {
        gameInstructions = this.GetComponent <GameInstructions> ();

        scriptHolder      = GameObject.FindGameObjectWithTag("ScriptHolder");
        phases            = scriptHolder.GetComponent <Phases> ();
        teamChecker       = scriptHolder.GetComponent <TeamChecker> ();
        countryManagement = scriptHolder.GetComponent <CountryManagement> ();
        attack            = scriptHolder.GetComponent <Attack> ();
        deploySoldiers    = scriptHolder.GetComponent <DeploySoldiers> ();

        plusColour     = plusBtn.GetComponent <Image> ();
        minusColour    = minusBtn.GetComponent <Image> ();
        attackColour   = attackBtn.GetComponent <Image> ();
        battleColour   = battleBtn.GetComponent <Image> ();
        turnColour     = turnBtn.GetComponent <Image> ();
        moveColour     = moveBtn.GetComponent <Image> ();
        categoryColour = catergoryBtn.GetComponent <Image> ();

        attackText = attackBtn.GetComponentInChildren <Text> ();
        moveText   = moveBtn.GetComponentInChildren <Text> ();
    }
Пример #15
0
 void Awake()
 {
     scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder");
     teamChecker  = scriptHolder.GetComponent <TeamChecker> ();
 }
Пример #16
0
 private void Awake()
 {
     territories = GameObject.FindGameObjectWithTag("Territories");
     teamChecker = this.GetComponent <TeamChecker>();
 }
Пример #17
0
 void Awake()
 {
     teamChecker       = this.GetComponent <TeamChecker> ();
     countryManagement = this.GetComponent <CountryManagement> ();
     targetingNetwork  = this.GetComponent <TargetingNetwork> ();
 }