void Start() { if (GetComponent<Main> ().enabled) GetComponent<Main> ().enabled = false; music = GetComponent<AquariumMusic> (); Debug.Log ("Start"); }
void Start() { if (GetComponent <Main> ().enabled) { GetComponent <Main> ().enabled = false; } music = GetComponent <AquariumMusic> (); Debug.Log("Start"); }
// Runs on the beginning of instantiation of this class void Start() { if (GetComponent<Main> ().enabled) GetComponent<Main> ().enabled = false; music = GetComponent<AquariumMusic>(); // Initialize each of the fish in the game left = Instantiate (left); right = Instantiate (right); Utility.InitializeFish (left, offscreenLeft); Utility.InitializeFish (right, offscreenRight); MoveOnScreen (); UpdateTime (); // set the initial time of the game }