Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DependencyInjection;
|
||||
using UnityEngine;
|
||||
|
||||
public class GlopalLogger : MonoBehaviour, IDependencyProvider
|
||||
{
|
||||
[SerializeField] private bool isActive = true;
|
||||
|
||||
[Provide]
|
||||
public GlopalLogger provideLogger()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
public void Log(string Massage)
|
||||
{
|
||||
if (isActive)
|
||||
Debug.Log(Massage);
|
||||
}
|
||||
|
||||
public void LogError(string Massage)
|
||||
{
|
||||
if (isActive)
|
||||
Debug.LogError(Massage);
|
||||
}
|
||||
|
||||
public void LogWarning(string Massage)
|
||||
{
|
||||
if (isActive)
|
||||
Debug.LogWarning(Massage);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user