- 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
Your answer
![](https://koobas.hobune.stream/wayback/20220612235326im_/https://answers.unity.com/themes/thub/images/avi.jpg)