// 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!"; } }
private void ChangeScene() { CustomSceneManager.LoadNext(); }
public void changeScene() { CustomSceneManager.LoadNext(); }