예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (transform.eulerAngles.z > stoprad && !stopped)
        {
            stopped         = true;
            stop            = true;
            message.enabled = true;
        }

        if (transform.eulerAngles.z > endrad && stopped && transform.eulerAngles.z < 300)
        {
            stop = true;
            Debug.Log("end scene");
            CustomSceneManager.LoadNext();
        }
        if (!stop)
        {
            transform.Rotate(new Vector3(0f, 0f, 150f) * Time.deltaTime);
            Debug.Log(transform.eulerAngles.z);
        }
        if (dragged)
        {
            stop         = false;
            message.text = "Well Done!";
        }
    }
예제 #2
0
 private void ChangeScene()
 {
     CustomSceneManager.LoadNext();
 }
예제 #3
0
 public void changeScene()
 {
     CustomSceneManager.LoadNext();
 }