Created
June 10, 2022 19:57
-
-
Save WeirdBeardDev/712f86d6e3dec282fa4fe627a89f13d5 to your computer and use it in GitHub Desktop.
A Unity script template for MonoBehaviours scripts.
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class #SCRIPTNAME# : MonoBehaviour | |
{ | |
#region Members | |
private const string DName = nameof(#SCRIPTNAME#); // Debug name | |
[Header("Logging")] | |
[SerializeField] private LoggerSO _logger = default; | |
#endregion Members | |
#region Properties | |
#endregion Properties | |
#region MonoBehaviours | |
private void Start() | |
{ | |
CheckLogger(); | |
} | |
#endregion MonoBehaviours | |
#region Methods | |
#endregion Methods | |
#region Helpers | |
private void CheckLogger() => _logger = _logger is null ? Resources.Load<LoggerSO>(GConst.DefaultLogger) : _logger; | |
#endregion Helpers | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment