예제 #1
0
파일: GameLoop.cs 프로젝트: gnomeby/pentris
    // 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;
    }