Exemple #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);
    }
Exemple #2
0
    public override void Execute(INotification notification)
    {
        var       testFacade = Facade;
        TestProxy proxy      = (TestProxy)testFacade.RetrieveProxy(TestProxy.NAME);

        proxy.ChangeLevel(1);
    }
Exemple #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;
        }
    }
Exemple #4
0
    public override void Execute(PureMVC.Interfaces.INotification notification)
    {
        TestProxy proxy = (TestProxy)Facade.RetrieveProxy(TestProxy.NAME);

        proxy.ChangeLevel(1);
    }