- Home /
,how to check if nothing is touching an object
this is my code right now : void OnCollisionEnter(Collision col) { if(!col.gameObject.name == "Plattform") { SceneManager.LoadScene (sceneName:"level2"); } },I can't figure out how to check if nothing is touching an object
and I can't find out anywhere please help this is my code
: void OnCollisionEnter(Collision col) { if(!col.gameObject.name == "Plattform") { SceneManager.LoadScene (sceneName:"level2"); } }
Comment