Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        guiController = guiObj.GetComponent <GUI_Controller> ();
        guiController.syncWithRoundManager = true;
        guiController.hideCanvas();
        //GUICONTROLLER addCenterText, setCenterTextInterval, addPowerup, hideCanvas, showCanvas

        leaderboardManager = leaderboardManagerObj.GetComponent <Leaderboard_Manager> ();

        playerController = playerObj.GetComponent <Player_Controller_VR> ();
        this.playerController.setPlayerSpeed(0.0f);

        this.roundData = this.GetComponent <Round_Data> ().roundData;

        animalSpawnLocations  = GameObject.FindGameObjectsWithTag("Animal Spawn");
        powerupSpawnLocations = GameObject.FindGameObjectsWithTag("Powerup Spawn");
        alienSpawnLocations   = GameObject.FindGameObjectsWithTag("Alien Spawn");

        timeStarted = Time.time;
        timeEnding  = timeStarted + timeRoundDuration;

        StartCoroutine("PowerupSpawnerCoroutine");

        //this.startRound (1);
    }
Esempio n. 2
0
 void Start()
 {
     Instance = this;
 }
Esempio n. 3
0
 private void Awake()
 {
     SharedInstance = this;
 }