示例#1
0
    // Update is called once per frame
    void Update()
    {
        if (!isPaused)
        {
            timeSinceLastSymbol += Time.deltaTime;
            if (timeSinceLastSymbol > tau)
            {
                controller.HandleTimeOut();
                timeSinceLastSymbol = 0.0f;
            }
        }

        if (Input.GetKeyDown("p") && !field.isFocused)
        {
            isPaused = !isPaused;
        }
    }