Answers for "change scene on collision unity"

C#
1

how to change scenes on collision unity

void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
         SceneManager.LoadScene (2);
 }
Posted by: Guest on August-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language