void OnEnable() { m_cur = target as SimpleHandle; m_ctrlPlay = false; m_havePlay = false; if (Application.isEditor && !EditorApplication.isPlaying) { EditorApplication.update = m_cur.LateUpdate; } }
static void AddSimpleHandle(MenuCommand command) { SimpleHandle s = Selection.activeGameObject.AddComponent <SimpleHandle>(); EditorUtility.SetDirty(Selection.activeGameObject); }
public SimpleAction(SimpleHandle <TMsg> handle) { _handle = handle; }
public static void AddSimpleRule <TMsg>(this Controller <TMsg> controller, SimpleHandle <TMsg> handle) { controller.Add(new SimpleAction <TMsg>(handle)); }