ActionSequencePool.PlaySequence
Declaration#
public static void PlaySequence(List<ActionSequenceWrapper> plugins, GameObject localTarget, Action onComplete, GameObject remoteTarget)Parameters#
| Name | Description |
|---|---|
| plugins | List of plugins to run on this action sequence |
| localTarget | Object to set as local target |
| onComplete | Action to invoke when sequence is complete |
| remoteTarget | Object 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#
| Name | Description |
|---|---|
| sequenceList | Action sequence list to run |
| localTarget | Object to set as local target |
| onComplete | Action to invoke when sequence is complete |
| remoteTarget | Object 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"); }
}