Skip to content

Commit 9690bec

Browse files
committed
[Bot] Automated dotnet-format update
1 parent b98743c commit 9690bec

40 files changed

+661
-654
lines changed

UOP1_Project/Assets/Scripts/Audio/MusicPlayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class MusicPlayer : MonoBehaviour
88
[SerializeField] private AudioConfigurationSO _audioConfig = default;
99
[Header("Pause music configuration")]
1010
[SerializeField] private AudioCueSO _pauseMusic = default;
11-
[SerializeField] private BoolEventChannelSO _onPauseOpened = default;
11+
[SerializeField] private BoolEventChannelSO _onPauseOpened = default;
1212

1313
private void OnEnable()
1414
{

UOP1_Project/Assets/Scripts/Audio/OrientListener.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
// Orient the listener to point in the same direction as the camera.
66
public class OrientListener : MonoBehaviour
77
{
8-
// Reference to the camera transform determine listener orientation
8+
// Reference to the camera transform determine listener orientation
99
[SerializeField]
1010
private TransformAnchor _cameraTransform;
1111

12-
void LateUpdate()
13-
{
14-
transform.forward = _cameraTransform.Transform.forward;
15-
}
12+
void LateUpdate()
13+
{
14+
transform.forward = _cameraTransform.Transform.forward;
15+
}
1616
}

UOP1_Project/Assets/Scripts/Characters/CharacterAudio.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class CharacterAudio : MonoBehaviour
66
{
7-
[SerializeField] protected AudioCueEventChannelSO _sfxEventChannel = default;
7+
[SerializeField] protected AudioCueEventChannelSO _sfxEventChannel = default;
88
[SerializeField] protected AudioConfigurationSO _audioConfig = default;
99

1010
}

UOP1_Project/Assets/Scripts/Characters/Config/DroppableRewardConfigSO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class DroppableRewardConfigSO : ScriptableObject
1818

1919
public virtual DropGroup DropSpecialItem()
2020
{
21-
return null;
21+
return null;
2222

2323
}
2424

UOP1_Project/Assets/Scripts/Characters/Config/SpecialDroppableRewardConfigSO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ public override DropGroup DropSpecialItem()
1919
if (_specialDroppableCurrentCount >= _specialDroppableMaxCount)
2020
return _specialItem;
2121
else
22-
return null;
22+
return null;
2323
}
2424
}

UOP1_Project/Assets/Scripts/Characters/NPC.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using UnityEngine;
44

5-
public enum NPCState { Idle = 0, Walk, Talk};
5+
public enum NPCState { Idle = 0, Walk, Talk };
66

77
public class NPC : MonoBehaviour
88
{

UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/DropRewardSO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public override void OnStateEnter()
3232

3333
private void DropAllRewards(Vector3 position)
3434
{
35-
DropGroup specialDropItem = _dropRewardConfig.DropSpecialItem();
35+
DropGroup specialDropItem = _dropRewardConfig.DropSpecialItem();
3636
if (specialDropItem != null) // drops a special item if any
3737
DropOneReward(specialDropItem, position);
3838
// Drop items

UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/MovementActions/PathwayMovementAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public PathwayMovementAction(
1515
{
1616
_agent = agent;
1717
_isActiveAgent = _agent != null && _agent.isActiveAndEnabled && _agent.isOnNavMesh;
18-
_wayPointIndex = - 1; //Initialized to -1 so we don't skip the first element from the waypoint list
18+
_wayPointIndex = -1; //Initialized to -1 so we don't skip the first element from the waypoint list
1919
_roamingSpeed = config.Speed;
2020
_wayppoints = config.Waypoints;
2121
}

UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/ShakeCamActionSO.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ public class ShakeCamAction : StateAction
1616
public override void Awake(StateMachine stateMachine)
1717
{
1818
}
19-
19+
2020
public override void OnUpdate()
2121
{
2222
}
23-
23+
2424
public override void OnStateEnter()
2525
{
2626
OriginSO.camShakeEvent.RaiseEvent();
2727
}
28-
28+
2929
public override void OnStateExit()
3030
{
3131
}

UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/HasReachedWaypointSO.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ protected override bool Statement()
2424
if (!_agent.pathPending)
2525
{
2626
//set the stop distance to 0.1 if it is set to 0 in the inspector
27-
if (_agent.stoppingDistance == 0) _agent.stoppingDistance = 0.1f;
27+
if (_agent.stoppingDistance == 0)
28+
_agent.stoppingDistance = 0.1f;
2829
if (_agent.remainingDistance <= _agent.stoppingDistance)
2930
{
3031
if (!_agent.hasPath || _agent.velocity.sqrMagnitude == 0f)

0 commit comments

Comments
 (0)