예제 #1
0
 public void Awake()
 {
     //AÑADIMOS LOS DIALOGOS CARGADOS DEL XML
     dialogueClass_Class    = dialogueClass.GetComponent <LoadXml>().DClass;
     AnswerManager          = new AnswerManager();
     DictionaryE            = goDictionary.GetComponent <DictionaryEvent>();
     CameraCenterController = Camera.main.GetComponent <CameraCenterController>();
 }
예제 #2
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);
        }
    }
예제 #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);


            return(0);
        }
        else
        {
            return(-1);
        }
    }
예제 #4
0
 private void Awake()
 {
     CameraCenterController = cam.GetComponent <CameraCenterController>();
     CombatUIManager        = combatUI.GetComponent <CombatUIManager>();
     PlayerCombatController = player.GetComponent <PlayerCombatController>();
 }
예제 #5
0
 public void Start()
 {
     CameraCenterController = Camera.main.GetComponent <CameraCenterController>();
     dialogues = new GameObject[transform.childCount];
     FillDialogues();
 }