void Start()
    {
        if (GetComponent<Main> ().enabled)
            GetComponent<Main> ().enabled = false;

        music = GetComponent<AquariumMusic> ();
        Debug.Log ("Start");
    }
Ejemplo n.º 2
0
    void Start()
    {
        if (GetComponent <Main> ().enabled)
        {
            GetComponent <Main> ().enabled = false;
        }

        music = GetComponent <AquariumMusic> ();
        Debug.Log("Start");
    }
Ejemplo n.º 3
0
    // 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
    }