Quantcast
Channel: Answers by "shriya"
Viewing all articles
Browse latest Browse all 98

Answer by shriya

$
0
0
HI, In the method On CollisionEnter method do the following code public void OnCollisionEnter(Collision collision) { StartCoroutine("PauseGame"); } Your character should have rigidbody and a collider attached. Also if you have added tags ,then you need to check it in CollisionEnter Code as mentioned in the link suggested by Darsh2019. And this script should be added to the player .

Viewing all articles
Browse latest Browse all 98

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>