You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Runtime/Utilities/Singleton.cs
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,17 @@
4
4
5
5
namespaceLachee.Utilities
6
6
{
7
+
/// <summary>
8
+
/// This interface is used to define a singleton. It is used to define the properties of a singleton.
9
+
/// </summary>
10
+
/// <typeparam name="T"></typeparam>
11
+
publicinterfaceISingleton<T>
12
+
{
13
+
publicstaticSystem.Typetype{get;}
14
+
publicstaticTinstance{get;}
15
+
publicstaticTavailable{get;}
16
+
publicstaticboolreferenced{get;}
17
+
}
7
18
8
19
/// <summary>
9
20
/// This class creates a Singleton GameObject that will either be lazily initialized when it is referenced for the first time or, grabbed from the scene if an instance already exists.
/// <remarks>Singleton inherits a <see cref="MonoBehaviour"/>, so standard Unity functions apply. However, Awake and OnApplicationQuit have been overriden.</remarks>
193
205
/// <typeparam name="T">The class that is to inherit Singleton</typeparam>
0 commit comments