Exemplo n.º 1
0
    public override void Execute(PureMVC.Interfaces.INotification notification)
    {
        TestProxy proxy = (TestProxy)Facade.RetrieveProxy(TestProxy.NAME);

        switch (notification.Name)
        {
        case NotificationConstant.LevelUp: proxy.ChangeLevel(1);
            break;

        case NotificationConstant.LevelDown: proxy.ChangeLevel(-1);
            break;
        }

        //proxy.ChangeLevel(1);
    }
Exemplo n.º 2
0
    public override void Execute(INotification notification)
    {
        var       testFacade = Facade;
        TestProxy proxy      = (TestProxy)testFacade.RetrieveProxy(TestProxy.NAME);

        proxy.ChangeLevel(1);
    }
Exemplo n.º 3
0
    public override void Execute(PureMVC.Interfaces.INotification notification)
    {
        switch (notification.Name)
        {
        case NotificationConst.LevelUp:

            Debug.Log("接收到请求消息");

            object cInfoObj = notification.Body;

            TestProxy proxy = Facade.RetrieveProxy(TestProxy.NAME) as TestProxy;
            proxy.ChangeLevel(cInfoObj);

            break;
        }
    }
Exemplo n.º 4
0
    public override void Execute(PureMVC.Interfaces.INotification notification)
    {
        TestProxy proxy = (TestProxy)Facade.RetrieveProxy(TestProxy.NAME);

        proxy.ChangeLevel(1);
    }