//======================================================================== void Start() { // Declare Variables //------------------------------------------------------ GameObject gameControllerObject = GameObject.FindGameObjectWithTag ("GameController"); if (gameControllerObject != null) { m_oGameController = gameControllerObject.GetComponent <CGameController>(); } if (m_oGameController == null) { Debug.Log ("Cannot find 'GameController' script"); } //------------------------------------------------------ }
//======================================================================== void Start() { // Declare Variables //------------------------------------------------------ GameObject gameControllerObject = GameObject.FindGameObjectWithTag ("GameController"); if (gameControllerObject != null) { m_oGameController = gameControllerObject.GetComponent <CGameController>(); } if (m_oGameController == null) { Debug.Log ("Cannot find 'GameController' script"); } m_intFireLaser = 0; m_intPrevFire = 0; PlayerPrefs.SetInt ("Terminate", 0); StartCoroutine (FireLaserBolts()); //------------------------------------------------------ }