Exemplo n.º 1
0
    //移动相机,添加回调
    public int CameraMoveWithCallBack(CameraMoveContent theTaskContent, CameraCenterController cameraCenterController, TaskMessenger tcallBackMessenger, string tcallBackEvent)
    {
        if (!isProcessorWorking && isCameraDefault)
        {
            isCallBack        = true;
            callBackMessenger = tcallBackMessenger;
            callBackEvent     = tcallBackEvent;

            CameraMove(theTaskContent, cameraCenterController);

            return(0);
        }
        else
        {
            print("wrong isProcessorWorking=true");
            return(-1);
        }
    }
Exemplo n.º 2
0
    //******************移动相机相关******************
    //(获得道具的过程中,gamemanager只传递调用,不处理相关逻辑,不操作propData中的数据。具体逻辑与数据操作交由uiPropList实现)



    //移动相机
    public int CameraMove(CameraMoveContent theTaskContent)
    {
        if (!isProcessorWorking)
        {
            isProcessorWorking = true;


            SetIsGlobalObjRespondMouse(false);
            theCameraController.AddTaskWithCallBack(theTaskContent, this, NormalTriggers.cameraMoveFinishWork);


            return(0);
        }
        else
        {
            return(-1);
        }
    }
Exemplo n.º 3
0
    //******************移动相机相关******************
    //(获得道具的过程中,gamemanager只传递调用,不处理相关逻辑,不操作propData中的数据。具体逻辑与数据操作交由uiPropList实现)



    //移动相机
    public int CameraMove(CameraMoveContent theTaskContent, CameraCenterController cameraCenterController)
    {
        if (!isProcessorWorking && isCameraDefault)
        {
            isProcessorWorking = true;

            nowCameraCenterController = cameraCenterController;
            isCameraDefault           = false;
            SetIsGlobalObjRespondMouse(false);
            theCameraController.AddTaskWithCallBack(theTaskContent, this, NormalTriggers.cameraMoveFinishWork);
            //print("ActiveCameraReturnButton");
            uIController.ActiveCameraReturnButton();

            return(0);
        }
        else
        {
            return(-1);
        }
    }