-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added DebugWrapper, bumped version to 1.2.0
- Loading branch information
Showing
7 changed files
with
269 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
using UnityEngine; | ||
|
||
|
||
|
||
namespace Signals.Utils.Engine | ||
{ | ||
[CreateAssetMenu(fileName = "Debug", menuName = "Signals/Utils/Engine/DebugWrapper")] | ||
public class DebugWrapper : ScriptableObject | ||
{ | ||
public void Assert(bool condition) | ||
{ | ||
Debug.Assert(condition); | ||
} | ||
|
||
public void Break() | ||
{ | ||
Debug.Break(); | ||
} | ||
|
||
public void Log(string message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(string message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(string message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(bool message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(bool message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(bool message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(char message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(char message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(char message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(float message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(float message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(float message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(int message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(int message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(int message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(Quaternion message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(Quaternion message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(Quaternion message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(Vector2 message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(Vector2 message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(Vector2 message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(Vector2Int message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(Vector2Int message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(Vector2Int message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(Vector3 message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(Vector3 message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(Vector3 message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(Vector3Int message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(Vector3Int message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(Vector3Int message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
|
||
public void Log(Vector4 message) | ||
{ | ||
Debug.Log(message); | ||
} | ||
|
||
public void LogWarning(Vector4 message) | ||
{ | ||
Debug.LogWarning(message); | ||
} | ||
|
||
public void LogError(Vector4 message) | ||
{ | ||
Debug.LogError(message); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_PrefabParentObject: {fileID: 0} | ||
m_PrefabInternal: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 3d7229d17e1eee44ba6021a1756490a9, type: 3} | ||
m_Name: Debug | ||
m_EditorClassIdentifier: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.