private void SetActiveCameraNormal() { CameraLookPlayer.enabled = true; CameraMovement.enabled = true; CameraCollisionHandler.enabled = true; // ----------------------------------------------------- CameraCombatHandler.enabled = false; CameraCombatCollisionHandler.enabled = false; CameraLookPlayer.SetCameraLocalPositionToZero(); ChatCameraHandler.Deactivate(); }
private void SetActiveCameraChat(Unit_AI ai) { CameraLookPlayer.enabled = false; CameraMovement.enabled = false; CameraCollisionHandler.enabled = false; // ===================================================== CameraCombatHandler.enabled = false; CameraCombatCollisionHandler.enabled = false; // ===================================================== var type = ai.DialogueHolder.Dialogues.ElementAt(0).Type; if (type == ChatType.Player) { ChatCameraHandler.ActivatePlayer(ai); } else if (type == ChatType.Target) { ChatCameraHandler.ActivateTarget(ai); } }