Advertisement
Italian_Style

Rotating bug in Project Boost

Aug 19th, 2020 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. // in CameraRotator.cs
  2. public class CameraRotator : MonoBehaviour
  3. {
  4.     [SerializeField] float speed;
  5.    
  6.     // Update is called once per frame
  7.     void Update()
  8.     {
  9.         Debug.Log("Rotating");
  10.         transform.Rotate(0, speed * Time.deltaTime, 0);
  11.     }
  12. }
  13.  
  14. // in GameManager.cs
  15. public void ReturnToMenu()
  16.     {
  17.         SceneManager.LoadScene("Main Menu");
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement