Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        // Init texts
        updateGUI();

        // Init glass
        glass = GameObject.Find("Glass").GetComponent<Glass>();

        // Generate first element && throw it
        glass.CreateNextElement(level);
        glass.ThrowNextElement(level);

        nextDownTime = Time.time + startSpeed;
        nextLevelTime = Time.time + nextLevelSeconds;
    }