// ---------------------------------------------------------------- // Start // ---------------------------------------------------------------- override protected void Start() { myFlatlineBody = myBody as FlatlineBody; gameTimeController = MyRoom.GameController.GameTimeController; HoverTimeLeft = HoverDur; // start out with fuel. base.Start(); }
// ---------------------------------------------------------------- // Start // ---------------------------------------------------------------- override protected void Start() { gameTimeController = MyRoom.GameController.GameTimeController; freezaBody = myBody as FreezaBody; base.Start(); SetIsRoomFrozen(false); }
private void Awake() { _gameTimeController = GetComponentInChildren <GameTimeController>(); _playerColorDropdown = GetComponentInChildren <PlayerColorDropdown>(); _startButton.onClick.AddListener(OnStartButtonClicked); _hostLeaveButton.onClick.AddListener(OnHostBackButtonClicked); _guestLeaveButton.onClick.AddListener(OnGuestBackButtonClicked); }
// ---------------------------------------------------------------- // Start / Destroy // ---------------------------------------------------------------- private void Start() { // Set application values. Application.targetFrameRate = GameVisualProperties.TargetFrameRate; gameTimeController = GetComponent <GameTimeController>(); // In the editor? Reload our levels file! #if UNITY_EDITOR UnityEditor.AssetDatabase.Refresh(); #endif // Start at the level we've most recently played! StartLevel(dataManager.GetLastPlayedLevelAddress()); }
void Start () { if (instance == null) { // Singleton instance = this; // Initial time calculation totalGameSeconds += secondsPerSecond * Time.deltaTime; } else if(instance != this) { // Singleton Destroy(gameObject); } }
// ---------------------------------------------------------------- // Start // ---------------------------------------------------------------- override protected void Start() { gameTimeController = MyRoom.GameController.GameTimeController; SetIsDilatingTime(true); base.Start(); }
// Use this for initialization void Start() { _gtc = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameTimeController>(); }
// Use this for initialization void Start() { this.gameTimeController = GameObject.FindObjectOfType<GameTimeController>(); }
private void Awake() { _gameTimeController = GetComponentInChildren <GameTimeController>(); }
void Start() { myState = States.bedroom_0_0; GameObject gameDialogboxControllerObject = GameObject.FindWithTag("DialogBox"); if (gameDialogboxControllerObject != null) { dialog = gameDialogboxControllerObject.GetComponent <GameDialogBoxController>(); } if (gameDialogboxControllerObject == null) { Debug.Log("Cannot find 'GameDialogBoxController' script."); } GameObject equipmentManagerObject = GameObject.FindWithTag("EquipmentManager"); if (equipmentManagerObject != null) { equipment = equipmentManagerObject.GetComponent <EquipmentManager>(); } if (equipmentManagerObject == null) { Debug.Log("Cannot find 'EquipmentManager' script."); } GameObject gametimeControllerObject = GameObject.FindWithTag("GameTime"); if (gametimeControllerObject != null) { gameTime = gametimeControllerObject.GetComponent <GameTimeController>(); } if (gametimeControllerObject == null) { Debug.Log("Cannot find 'GameTimeController' script."); } GameObject enemyControllerObject = GameObject.FindWithTag("Enemy"); if (enemyControllerObject != null) { enemy = enemyControllerObject.GetComponent <EnemyController>(); } if (enemyControllerObject == null) { Debug.Log("Cannot find 'EnemyController' script."); } GameObject playerControllerObject = GameObject.FindWithTag("Player"); if (playerControllerObject != null) { player = playerControllerObject.GetComponent <PlayerController>(); } if (playerControllerObject == null) { Debug.Log("Cannot find 'PlayerController' script."); } GameObject levelManagerObject = GameObject.FindWithTag("LevelManager"); if (levelManagerObject != null) { level = levelManagerObject.GetComponent <LevelManager>(); } if (levelManagerObject == null) { Debug.Log("Cannot find 'LevelManager' script."); } }
void Start() { _gtc = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameTimeController>(); _sc = GameObject.FindGameObjectWithTag("GameController").GetComponent<StaffController>(); _gtc.MonthElasped += MonthElapsed; }