예제 #1
0
파일: TestCommand.cs 프로젝트: LeoYangD/MVC
    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);
    }
예제 #2
0
    public override void Execute(INotification notification)
    {
        var       testFacade = Facade;
        TestProxy proxy      = (TestProxy)testFacade.RetrieveProxy(TestProxy.NAME);

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

        proxy.ChangeLevel(1);
    }