Skip to main content

ActionSequencePool.PlaySequence

Declaration#

public static void PlaySequence(List<ActionSequenceWrapper> plugins, GameObject localTarget, Action onComplete, GameObject remoteTarget)

Parameters#

NameDescription
pluginsList of plugins to run on this action sequence
localTargetObject to set as local target
onCompleteAction to invoke when sequence is complete
remoteTargetObject to set as remote target

Description#

Plays an Action Sequence and invokes callback on complete. This method is threadsafe.

Usage#

Example
using NullSave.GDTK;using System.Collections.Generic;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(List<ActionSequenceWrapper> target, GameObject other)    {        ActionSequencePool.PlaySequence(target, gameObject, SequenceComplete, other);    }
    private void SequenceComplete()    {        Debug.Log("Action Sequence complete");    }

}

Declaration#

public static void PlaySequence(ActionSequenceList sequenceList, Component localTarget, Action onComplete, GameObject remoteTarget)

Parameters#

NameDescription
sequenceListAction sequence list to run
localTargetObject to set as local target
onCompleteAction to invoke when sequence is complete
remoteTargetObject to set as remote target

Description#

Plays an Action Sequence and invokes callback on complete. This method is threadsafe.

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(ActionSequenceList target, GameObject other)    {        ActionSequencePool.PlaySequence(target, gameObject, SequenceComplete, other);    }
    private void SequenceComplete()    {        Debug.Log("Action Sequence complete");    }
}