Wednesday, March 16, 2016

R for Replay Code

using UnityEngine.SceneManagement;

//Note: This is in Update

if (Input.GetKeyDown (KeyCode.R)) {  
            SceneManager.LoadScene (1);  
  }

No comments: