Inheritance: UnityEngine.MonoBehaviour
Ejemplo n.º 1
0
        public static void Setup(Transform inTarget, Action anAction)
        {
            ActionRunner runner = inTarget.GetComponent <ActionRunner>();

            if (runner == null)
            {
                runner = inTarget.gameObject.AddComponent <ActionRunner>();
                runner.actionsToRun = new List <Action>();
            }
            runner.actionsToRun.Add(anAction);
        }
Ejemplo n.º 2
0
 public static void Run(Transform targetTransform, Action anAction)
 {
     ActionRunner.Setup(targetTransform, anAction);
 }