public void Splash (string text, float duration, int amount) { SplashCommand cmd = new SplashCommand(); cmd.text = text; cmd.duration = duration; for (int i = 0; i < amount; i++) { queue.Add(cmd); } }
public void SplashPrefab(GameObject splash) { SplashCommand cmd = new SplashCommand(); cmd.obj = splash; queue.Add(cmd); }