Quantcast
Channel: Answers by "tone20"
Viewing all articles
Browse latest Browse all 8

Answer by tone20

$
0
0
you can simply disable the trigger after you leave it attach this to trigger var myTrigger : GameObject; var myObject : GameObject; function Start () { myObject.SetActive(false); } function OnTriggerEnter () { myObject.setActive(false); } function OnTriggerExit() { myTrigger.SetActive(false); myObject.SetActive(false); }

Viewing all articles
Browse latest Browse all 8

Trending Articles



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