Overall code improvement, Add Camera Man

This commit is contained in:
Gurge44 committed 2023-10-13 21:49:13 +02:00
1 parent 8ff22da67f
commit 1c9610e8ef
37 files changed
+1551 -715

No files matched your search

+13 -13
View File
@@ -15,19 +15,19 @@ public class ErrorText : MonoBehaviour
return _instance;
}
}
private static ErrorText _instance;
private void Awake()
{
if (_instance != null)
{
Destroy(gameObject);
}
else
{
_instance = this;
DontDestroyOnLoad(this);
}
}
private static readonly ErrorText _instance;
//private void Awake()
//{
// if (_instance != null)
// {
// Destroy(gameObject);
// }
// else
// {
// _instance = this;
// DontDestroyOnLoad(this);
// }
//}
#endregion
public static void Create(TMPro.TextMeshPro baseText)
{