private static string GetEventTargetLabel(SkillLogEntry entry)
        {
            SkillEventTarget eventTarget = entry.get_EventTarget();

            switch (eventTarget.target)
            {
            case 0:
                return(null);

            case 1:
            {
                GameObject ownerDefaultTarget = SkillEditor.SelectedFsm.GetOwnerDefaultTarget(eventTarget.gameObject);
                if (!(ownerDefaultTarget != null))
                {
                    return(" GameObject: None");
                }
                return(" GameObject: " + ownerDefaultTarget.get_name());
            }

            case 2:
            {
                GameObject ownerDefaultTarget = SkillEditor.SelectedFsm.GetOwnerDefaultTarget(eventTarget.gameObject);
                if (!(ownerDefaultTarget != null))
                {
                    return(" GameObjectFSM: None");
                }
                return(string.Concat(new object[]
                    {
                        " GameObjectFSM: ",
                        ownerDefaultTarget.get_name(),
                        " ",
                        eventTarget.fsmName
                    }));
            }

            case 3:
                if (!(eventTarget.fsmComponent != null))
                {
                    return(" FsmComponent: None");
                }
                return(" FsmComponent: " + Labels.GetFullFsmLabel(eventTarget.fsmComponent.get_Fsm()));

            case 4:
                return(" BroadcastAll");

            case 5:
                return(" Host: " + entry.get_State().get_Fsm().get_Host().get_Name());

            case 6:
                return(" SubFSMs");

            default:
                return(null);
            }
        }
 private bool ShowEventTarget(SkillLogEntry entry)
 {
     return(entry.get_LogType() == 8 && entry.get_EventTarget().target != null);
 }
        private void OnClickEventTarget(SkillLogEntry entry)
        {
            switch (entry.get_EventTarget().target)
            {
            case 0:
            case 6:
                break;

            case 1:
                if (entry.get_Event() != null)
                {
                    GenericMenu  genericMenu = new GenericMenu();
                    List <Skill> fsmList     = SkillInfo.GetFsmList(SkillInfo.FindTransitionsUsingEvent(entry.get_Event().get_Name()));
                    using (List <Skill> .Enumerator enumerator = fsmList.GetEnumerator())
                    {
                        while (enumerator.MoveNext())
                        {
                            Skill current = enumerator.get_Current();
                            genericMenu.AddItem(new GUIContent(Labels.GetFullFsmLabel(current)), false, new GenericMenu.MenuFunction2(SkillEditor.SelectFsm), current);
                        }
                    }
                    genericMenu.ShowAsContext();
                    return;
                }
                break;

            case 2:
            {
                GameObject ownerDefaultTarget = SkillEditor.SelectedFsm.GetOwnerDefaultTarget(entry.get_EventTarget().gameObject);
                Skill      fsm = SkillSelection.FindFsmOnGameObject(ownerDefaultTarget, entry.get_EventTarget().fsmName.get_Value());
                if (fsm != null)
                {
                    SkillEditor.SelectFsm(fsm);
                    return;
                }
                break;
            }

            case 3:
                if (entry.get_EventTarget().fsmComponent != null)
                {
                    SkillEditor.SelectFsm(entry.get_EventTarget().fsmComponent.get_Fsm());
                    return;
                }
                break;

            case 4:
                if (entry.get_Event() != null)
                {
                    GenericMenu  genericMenu2 = new GenericMenu();
                    List <Skill> fsmList2     = SkillInfo.GetFsmList(SkillInfo.FindTransitionsUsingEvent(entry.get_Event().get_Name()));
                    using (List <Skill> .Enumerator enumerator2 = fsmList2.GetEnumerator())
                    {
                        while (enumerator2.MoveNext())
                        {
                            Skill current2 = enumerator2.get_Current();
                            genericMenu2.AddItem(new GUIContent(Labels.GetFullFsmLabel(current2)), false, new GenericMenu.MenuFunction2(SkillEditor.SelectFsm), current2);
                        }
                    }
                    genericMenu2.ShowAsContext();
                    return;
                }
                break;

            case 5:
                SkillEditor.SelectFsm(entry.get_State().get_Fsm().get_Host());
                break;

            default:
                return;
            }
        }