inputReader.enableMouseControlCameraEvent += OnEnableMouseControlCamera;
inputReader.disableMouseControlCameraEvent += OnDisableMouseControlCamera;
if(_frameObjectChannel != null)
if (_frameObjectChannel != null)
_frameObjectChannel.OnEventRaised += OnFrameObjectEvent;
_cameraTransformAnchor.Transform = mainCamera.transform;
private void RecalculateMovement()
{
if(gameplayCameraTransform.isSet)
if (gameplayCameraTransform.isSet)
//Get the two axes from the camera and flatten them on the XZ plane
Vector3 cameraForward = gameplayCameraTransform.Transform.forward;
public void RaiseEvent(Transform value)
if(OnEventRaised != null)
if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
public Transform Transform
get { return _transform; }
set {
set
_transform = value;
isSet = _transform != null;