Exemplo n.º 1
0
    void RegisterEventToBeQueued(EventInfo @event)
    {
        EventRegisterInfo toRegisterEventInfo = (EventRegisterInfo)@event;
        GameEvent         toRegisterEvent     = toRegisterEventInfo.Event;

        toTriggerEvents.Add(toRegisterEvent);
    }
    public override void PerformAction()
    {
        EventRegisterInfo eventRegister = new EventRegisterInfo();
        GameEvent         @event        = new GameEvent(eventToRise, true, eventFireTime);

        eventRegister.Event = @event;
        thisEvent_Type      = Event_Type.EVENT_REGISTER;
        GameEventSystem.DoEvent(
            thisEvent_Type,
            eventRegister
            );
    }