// Use this for initialization void Start() { InputUtil.Clear(); Mask = transform.Find("Mask").gameObject; DontDestroyOnLoad(SoundManager.GetInstance()); DontDestroyOnLoad(InputPadActivator.GetInstance()); }
// Use this for initialization void Start() { InputUtil.Clear(); MainCamera = GameObject.Find(GameConstants.MainCamera).GetComponent <Camera>(); Scoreboard = transform.Find("Scoreboard").GetComponent <Scoreboard>(); Resultboard = transform.Find("Resultboard").GetComponent <Resultboard>(); PopulateField(); PlayerInventory.Bursters = GameConstants.InitialPlayerBursters; Scoreboard.DisplayBursters(PlayerInventory.Bursters); if (RecruitController.InstanceCount == 0) { this.RunAfterSeconds(2, () => Instantiate(RecruitPrefab)); } startTime = Time.time; IsGameOver = false; }