Quantcast
Channel: Answers by "RedDevil"
Viewing all articles
Browse latest Browse all 92

Answer by RedDevil

$
0
0
void OnTriggerEnter(Collider otherObject) { if(otherObject.name == "untitled") { StartCoroutine(animthendestroy()); } IEnumerator animthendestroy() { animation.Play(); yield return new WaitForSeconds(here you enter the seconds it takes to play the anim(); Destroy(otherObject.gameObject); }

Viewing all articles
Browse latest Browse all 92

Trending Articles



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