// 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); }
void Start() { Instance = this; }
private void Awake() { SharedInstance = this; }