-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
85 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
NebulaWorld/MonoBehaviours/Local/Chat/UnityDebugManager.cs
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,44 @@ | ||
using NebulaModel.Logger; | ||
using UnityEngine; | ||
using ILogger = NebulaModel.Logger.ILogger; | ||
|
||
namespace NebulaWorld.MonoBehaviours.Local | ||
{ | ||
public class UnityDebugManager : MonoBehaviour | ||
{ | ||
private void Awake() | ||
{ | ||
VFInput.Init(); | ||
Log.Init(new EditorLogger()); | ||
} | ||
|
||
private void Update() | ||
{ | ||
VFInput.OnUpdate(); | ||
} | ||
} | ||
|
||
|
||
public class EditorLogger : ILogger | ||
{ | ||
public void LogDebug(object data) | ||
{ | ||
Debug.Log(data); | ||
} | ||
|
||
public void LogInfo(object data) | ||
{ | ||
Debug.Log(data); | ||
} | ||
|
||
public void LogWarning(object data) | ||
{ | ||
Debug.LogWarning(data); | ||
} | ||
|
||
public void LogError(object data) | ||
{ | ||
Debug.LogError(data); | ||
} | ||
} | ||
} |