Esempio n. 1
0
    static public EventBase CreateEvent(EventManager.ENTriggerID triggerId)
    {
        switch (triggerId)
        {
        case ENTriggerID.enMonsterDead:
            return(new DeadEvent());

        case ENTriggerID.enMonsterHPX:
            return(new HPEvent());

        case ENTriggerID.enMonsterUseSkillXCount:
            return(new UsedSkillEvent());

        case ENTriggerID.enOpenBox:
            return(new OpenBoxEvent());

        case ENTriggerID.enTriggerTrap:
            return(new TriggerTrapEvent());

        case ENTriggerID.enActorCloseToGate:
            return(new CloseToGateEvent());

        case ENTriggerID.enActorEnterLevel:
            return(new EnterLevelEvent());

        case ENTriggerID.enAndEvent:
            return(new AndEvent());

        case ENTriggerID.enSkillAllMonster:
            return(new SkillAllMonsterEvent());

        default:
            break;
        }
        return(null);
    }
Esempio n. 2
0
    public List <GameObject> ActionList; // 行为列表

    public LE_Event_Base(EventManager.ENTriggerID type)
    {
        m_type      = type;
        SerializeNo = 0;
    }