상속: UnityEngine.MonoBehaviour
예제 #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);
        }
예제 #2
0
파일: Action.cs 프로젝트: Hsantos/roll-ftw
 public static void Run(Transform targetTransform, Action anAction)
 {
     ActionRunner.Setup(targetTransform, anAction);
 }