コード例 #1
0
        public NodeActionEditorWrapper(ActionKitAction action)
        {
            mAction = action;

            UnityEditor.EditorApplication.update += Update;
            mAction.OnEndedCallback += () => { UnityEditor.EditorApplication.update -= Update; };
        }
コード例 #2
0
 void Update()
 {
     if (!mAction.Finished && mAction.Execute(Time.deltaTime))
     {
         mAction.Dispose();
         mAction = null;
     }
 }
コード例 #3
0
        public NodeActionEditorWrapper(ActionKitAction action)
        {
            mAction = action;
#if UNITY_EDITOR
            UnityEditor.EditorApplication.update += Update;
            mAction.OnEndedCallback += () => { UnityEditor.EditorApplication.update -= Update; };
#endif
        }