예제 #1
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.R))
        {
            serialMain.Scene();
            SceneManager.LoadScene(SceneManager.GetActiveScene().name);
        }
        int num = (int)mySpeed;

        speedUI.text = num.ToString();

        if (atLength < 0)
        {
            convini.SetActive(true);
        }
        if (staycount > 100)
        {
            gameclear.SetActive(true);
            for (int i = 0; i <= 1; i++)
            {
                Destroy(gameManager[i]);
            }
        }
    }