Beispiel #1
0
    public virtual DelayedCall RepeatCall(DelayedCall.Call call, float delay, float duration, int repeatCount)
    {
        if (call == null)
        {
            return(null);
        }

        DelayedCall delayedCall = DelayedCall.Pop();

        delayedCall.juggler = this;
        delayedCall.Init(
            delay, duration, repeatCount, call, null
            );
        Add(delayedCall);
        return(delayedCall);
    }
Beispiel #2
0
    public virtual DelayedCall UpdateCall(DelayedCall.Call call, float delay, float duration)
    {
        if (call == null)
        {
            return(null);
        }

        DelayedCall delayedCall = DelayedCall.Pop();

        delayedCall.juggler = this;
        delayedCall.Init(
            delay, duration, DelayedCall.k_EveryFrame, call, null
            );
        Add(delayedCall);
        return(delayedCall);
    }
Beispiel #3
0
    public virtual DelayedCall DelayCall(DelayedCall.Call call, float delay)
    {
        if (call == null)
        {
            return(null);
        }

        DelayedCall delayedCall = DelayedCall.Pop();

        delayedCall.juggler = this;
        delayedCall.Init(
            delay, 0.0f, DelayedCall.k_OneShot, call, null
            );
        Add(delayedCall);
        return(delayedCall);
    }