コード例 #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
ファイル: TestCommond.cs プロジェクト: 5X5G/PureMVC_Unity
    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
ファイル: TestCommand.cs プロジェクト: 164638896/PureMVC
    public override void Execute(PureMVC.Interfaces.INotification notification)
    {
        TestProxy proxy = (TestProxy)Facade.RetrieveProxy(TestProxy.NAME);

        proxy.ChangeLevel(1);
    }