Exemplo n.º 1
0
 public void SetInfo(ObjectCreateEvent e)
 {
     code.text  = e.code.ToString();
     posx.text  = e.pos.x.ToString();
     posy.text  = e.pos.y.ToString();
     angle.text = e.angle.ToString();
 }
Exemplo n.º 2
0
    public EventBase GetEvent(int code, int frameCode)
    {
        EventBase eventBase;

        switch ((Events)code)
        {
        case Events.Test:
            eventBase = new TestEvent();
            break;

        case Events.ObjectCreate:
            eventBase = new ObjectCreateEvent(frameCode);
            break;

        case Events.EnemyCreate:
            eventBase = new EnemyCreateEvent(frameCode);
            break;

        case Events.Dialog:
            eventBase = new DialogEvent();
            break;

        case Events.Static:
            eventBase = new StaticEvent();
            break;

        case Events.WaitExtinc:
            eventBase = new WaitExtinc();
            break;

        default:
            eventBase = null;
            break;
        }

        return(eventBase);
    }