Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in CameraRotator.cs
- public class CameraRotator : MonoBehaviour
- {
- [SerializeField] float speed;
- // Update is called once per frame
- void Update()
- {
- Debug.Log("Rotating");
- transform.Rotate(0, speed * Time.deltaTime, 0);
- }
- }
- // in GameManager.cs
- public void ReturnToMenu()
- {
- SceneManager.LoadScene("Main Menu");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement