Quantcast
Channel: Answers by "IvovdMarel"
Viewing all articles
Browse latest Browse all 145

Answer by IvovdMarel

$
0
0
I recommend not using a for-loop, but instead use InvokeRepeating. Example: int nCardsToPush = 5; void Start () { InvokeRepeating("PopCard", 0, 0.5f); } void PopCard () { if (nCardsToPush > 0) { enemy.Push (cardDeckEnemy.Pop ()); nCardsToPush--; } else { CancelInvoke(); } }

Viewing all articles
Browse latest Browse all 145

Trending Articles



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