浏览代码

[Bot] Automated dotnet-format update

/main
Ciro Continisio 4 年前
当前提交
2700464f
共有 4 个文件被更改,包括 5 次插入4 次删除
  1. 2
      UOP1_Project/Assets/Scripts/CameraManager.cs
  2. 2
      UOP1_Project/Assets/Scripts/Characters/Protagonist.cs
  3. 2
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/TransformEventChannelSO.cs
  4. 3
      UOP1_Project/Assets/Scripts/RuntimeAnchors/TransformAnchor.cs

2
UOP1_Project/Assets/Scripts/CameraManager.cs


inputReader.enableMouseControlCameraEvent += OnEnableMouseControlCamera;
inputReader.disableMouseControlCameraEvent += OnDisableMouseControlCamera;
if(_frameObjectChannel != null)
if (_frameObjectChannel != null)
_frameObjectChannel.OnEventRaised += OnFrameObjectEvent;
_cameraTransformAnchor.Transform = mainCamera.transform;

2
UOP1_Project/Assets/Scripts/Characters/Protagonist.cs


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;

2
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/TransformEventChannelSO.cs


public void RaiseEvent(Transform value)
{
if(OnEventRaised != null)
if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
}

3
UOP1_Project/Assets/Scripts/RuntimeAnchors/TransformAnchor.cs


public Transform Transform
{
get { return _transform; }
set {
set
{
_transform = value;
isSet = _transform != null;
}

正在加载...
取消
保存