Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Enemy Respawn Bug

$
0
0
When my enimes hit below 0 health I want them to be set inactive for a couple seconds then active again, I can not for the life of me get this to work.. I need help (IN C##) Heres the simple code I have. public void respawn() { transform.position = respawnhere; transform.active = true; } public void despawn() { transform.active = false; } IEnumerator Example() { despawn(); yield return new WaitForSeconds(35); respawn(); }

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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