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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e299ebb448b6384d82e7ca19f71a54f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "Scripts.Logger",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:932aa9200c814388a2af10406d3eb62e"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fc759e1ad51443e5b90aa7b791e33f55
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user