Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        flag = GameObject.Find("player_text").GetComponent <flagScript>();

        //initialize russian units
        unit_RussianAT      = GameObject.Find("unit_RussianAT");
        unit_RussianBomber  = GameObject.Find("unit_RussianBomber");
        unit_RussianCannon  = GameObject.Find("unit_RussianCannon");
        unit_RussianFighter = GameObject.Find("unit_RussianFighter");
        unit_RussianSniper  = GameObject.Find("unit_RussianSniper");
        unit_RussianSquad   = GameObject.Find("unit_RussianSquad");
        unit_t28            = GameObject.Find("unit_t-28");
        unit_t34            = GameObject.Find("unit_t-34");
        unit_t60            = GameObject.Find("unit_t-60");

        //initialize german units
        unit_Flak30        = GameObject.Find("unit_Flak30");
        unit_GermanAT      = GameObject.Find("unit_GermanAT");
        unit_GermanBomber  = GameObject.Find("unit_GermanBomber");
        unit_GermanFighter = GameObject.Find("unit_GermanFighter");
        unit_GermanSniper  = GameObject.Find("unit_GermanSniper");
        unit_GermanSquad   = GameObject.Find("unit_GermanSquad");
        unit_panther       = GameObject.Find("unit_panther");
        unit_Panzer4       = GameObject.Find("unit_Panzer4");
        unit_Wirbelwind    = GameObject.Find("unit_Wirbelwind");

        data_Carry = GameObject.Find("Data Carry");
        GT_p1_Credits_Remaining = GameObject.Find("p1 credits remaining");
        GT_p2_Credits_Remaining = GameObject.Find("p2 credits remaining");
        GT_player1     = GameObject.Find("Player1Pick");
        GT_player2     = GameObject.Find("Player2Pick");
        GT_insuff      = GameObject.Find("Insufficient Funds");
        GT_battleBegin = GameObject.Find("Battle Begins");
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     came = GameObject.Find("Render").GetComponent<cameraRotationScript>();
     flag = GameObject.Find("Flag").GetComponent<flagScript>();
     GameObject gameControllerObject = GameObject.FindWithTag ("GameController");
     if (gameControllerObject != null) {
         gameController = gameControllerObject.GetComponent <GameController>();
     }
     compass = GameObject.Find ("Compass");
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        came = GameObject.Find("Render").GetComponent <cameraRotationScript>();
        flag = GameObject.Find("Flag").GetComponent <flagScript>();
        GameObject gameControllerObject = GameObject.FindWithTag("GameController");

        if (gameControllerObject != null)
        {
            gameController = gameControllerObject.GetComponent <GameController>();
        }
        compass = GameObject.Find("Compass");
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        flag = GameObject.Find("player_text").GetComponent<flagScript>();

        //initialize russian units
        unit_RussianAT = GameObject.Find ("unit_RussianAT");
        unit_RussianBomber = GameObject.Find ("unit_RussianBomber");
        unit_RussianCannon = GameObject.Find ("unit_RussianCannon");
        unit_RussianFighter = GameObject.Find ("unit_RussianFighter");
        unit_RussianSniper = GameObject.Find ("unit_RussianSniper");
        unit_RussianSquad = GameObject.Find ("unit_RussianSquad");
        unit_t28 = GameObject.Find("unit_t-28");
        unit_t34 = GameObject.Find("unit_t-34");
        unit_t60 = GameObject.Find("unit_t-60");

        //initialize german units
        unit_Flak30 = GameObject.Find ("unit_Flak30");
        unit_GermanAT = GameObject.Find ("unit_GermanAT");
        unit_GermanBomber = GameObject.Find ("unit_GermanBomber");
        unit_GermanFighter = GameObject.Find ("unit_GermanFighter");
        unit_GermanSniper = GameObject.Find ("unit_GermanSniper");
        unit_GermanSquad = GameObject.Find ("unit_GermanSquad");
        unit_panther = GameObject.Find ("unit_panther");
        unit_Panzer4 = GameObject.Find ("unit_Panzer4");
        unit_Wirbelwind = GameObject.Find ("unit_Wirbelwind");

        data_Carry = GameObject.Find("Data Carry");
        GT_p1_Credits_Remaining = GameObject.Find ("p1 credits remaining");
        GT_p2_Credits_Remaining = GameObject.Find ("p2 credits remaining");
        GT_player1 = GameObject.Find ("Player1Pick");
        GT_player2 = GameObject.Find ("Player2Pick");
        GT_insuff = GameObject.Find ("Insufficient Funds");
        GT_battleBegin = GameObject.Find ("Battle Begins");
    }