Beispiel #1
0
    void Awake()
    {
        gameController = GetComponent <GameControllerF>();

        // Retrieve coordinates of locations and instantiate avatars (getting their scripts)
        GetLocationPositions();
        GetAgentsControl();
        GetAgentsOutline();
    }
Beispiel #2
0
 void Awake()
 {
     // Get components
     client = GetComponent <ClientF> ();
     populationController = GetComponent <PopulationControllerF> ();
     uiController         = GetComponent <UIControllerF> ();
     gameController       = GetComponent <GameControllerF> ();
     scoreManager         = GetComponent <ScoresManagerF> ();
     ac = GetComponent <ACF> ();
 }
    void Start()
    {
        // Get components
        populationController = GetComponent <PopulationControllerF> ();
        gameController       = GetComponent <GameControllerF> ();
        texts = GetComponent <TextsF> ();
        ac    = GetComponent <ACF> ();

        GetPushButtons();
        GetPositionButtons();

        displayOpponentScore = gameController.GetDisplayOpponentScore();

        if (!displayOpponentScore)
        {
            texts.cumulativeScoreOpponent.text     = "";
            texts.cumulativeScoreOpponentIcon.text = "";
            texts.cumulativeScoreIcon.text         = "Score:";
        }

        scoreUpdated = true;
    }
Beispiel #4
0
 void Awake()
 {
     gameController = GetComponent <GameControllerF> ();
 }