コード例 #1
0
    // 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();
    }
コード例 #2
0
 // 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);
 }