Exemplo n.º 1
0
    void OnEnable()
    {
        m_cur      = target as SimpleHandle;
        m_ctrlPlay = false;
        m_havePlay = false;

        if (Application.isEditor && !EditorApplication.isPlaying)
        {
            EditorApplication.update = m_cur.LateUpdate;
        }
    }
Exemplo n.º 2
0
    static void AddSimpleHandle(MenuCommand command)
    {
        SimpleHandle s = Selection.activeGameObject.AddComponent <SimpleHandle>();

        EditorUtility.SetDirty(Selection.activeGameObject);
    }
Exemplo n.º 3
0
 public SimpleAction(SimpleHandle <TMsg> handle)
 {
     _handle = handle;
 }
Exemplo n.º 4
0
 public static void AddSimpleRule <TMsg>(this Controller <TMsg> controller, SimpleHandle <TMsg> handle)
 {
     controller.Add(new SimpleAction <TMsg>(handle));
 }