Skip to content

Commit de1ccea

Browse files
committed
Add status to DebugManager and other cleaning
1 parent 4e6946a commit de1ccea

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Assets/_Project/Scripts/Core/DebugManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public class DebugManager : Singleton<DebugManager> {
77
protected DebugManager () { }
88
public static new DebugManager Instance;
99

10-
11-
10+
[SerializeField]
11+
public static bool status = true;
1212

1313
// dictionary of symbols
1414
private static Dictionary<string, string> symbolDictionary;

Assets/_Project/Scripts/Core/ResolutionUpdateBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ResolutionUpdateBase : MonoBehaviour {
1313

1414
protected ResolutionManager resolutionManager;
1515

16-
// listeners call method in inherited classes
16+
// these listeners call the method below, which are overridden with specific behaviors in inherited classes
1717
void OnEnable ()
1818
{
1919
EventManager.StartListening ("ResolutionUpdated", UpdateResolution);

Assets/_Project/Scripts/Core/ResolutionUpdateScaleX.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected override void Awake ()
2727

2828
protected override void UpdateResolution ()
2929
{
30-
base.UpdateResolution ();
30+
//base.UpdateResolution ();
3131

3232
// update the horizontal width
3333
transform.localScale = new Vector3 (originalScale.x * resolutionManager.playerAspectRatio, originalScale.y, originalScale.z);

Assets/_Project/Scripts/Movement/MovePositionWanderComplex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Vector3 ReturnNewWanderPoint ()
118118

119119
if (++safety > 10) {
120120
Debug.Log ("MovePositionWanderComplex.ReturnNewWanderPoint() - Safety first!");
121-
break;
121+
return Vector3.zero;
122122
}
123123
}
124124
return target;

0 commit comments

Comments
 (0)