// TODO : This probably can be static public IEnumerator Countdown(float duration, Delegates.EmptyDel effector) { var normalizedTime = 0f; while (normalizedTime <= 1f) { normalizedTime += Time.deltaTime / duration; yield return(null); } effector(); }
// This function is called to bind Avatar-specific methods to the // globally accessible player class. public void RegisterAvatar(ControllableComponent avatar) { OnDeath = new Delegates.EmptyDel(avatar.OnDeath); }