Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        base.DrawDefaultInspector();

        model = target as Hstj.LuaAnimEvent;
        if (model._listCtrl != null)
        {
            for (int i = 0; i < model._listCtrl.Count; i++)
            {
                xxstory.StoryBaseCtrl objCtrl = model._listCtrl[i];
                objCtrl.OnExampleGUI();
            }
        }

        GUILayout.BeginHorizontal();
        if (GUILayout.Button("Execute"))
        {
            model._bsCtrl.Reset();
            model._bsCtrl.Execute();
        }
        if (GUILayout.Button("Clear"))
        {
            model._bsCtrl.Clear();
        }
        GUILayout.EndHorizontal();
    }
Exemplo n.º 2
0
 public override void OnInspectorGUI()
 {
     objAnimEvent = target as Hstj.LuaAnimEvent;
     if (!objAnimEvent.bInitMember) return;
     //
     ImportScript();
     ShowBasicInfo();
     ShowActorInfo();
     ShowBoardInfo();
 }
 private string szEditorState = "实例参数"; //使用此参数代表当前是待添加事件还是修改事件
 //初始化一个时间轴、目前单个时间轴
 private void initAnimEvent()
 {
     if (_animEvent != null)
     {
         Debug.LogWarning("StoryBaseCtrlEditorWindow: already have a AnimEvent....");
         return;
     }
     GameObject obj = new GameObject("New Anim Event");
     _animEvent = obj.AddComponent<Hstj.LuaAnimEvent>();
     _animEvent.InitMemeber();
 }