Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b70b666

Browse files
Merge pull request #23 from nnra6864/DefaultExecutionOrder
Added [DefaultExecutionOrder(-50)] to MonoSingleton
2 parents 9416bf6 + 32400bc commit b70b666

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Runtime/Scripts/MonoSingleton.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace UnityCommunity.UnitySingleton
66
/// The basic MonoBehaviour singleton implementation, this singleton is destroyed after scene changes, use <see cref="PersistentMonoSingleton{T}"/> if you want a persistent and global singleton instance.
77
/// </summary>
88
/// <typeparam name="T"></typeparam>
9+
[DefaultExecutionOrder(-50)]
910
public abstract class MonoSingleton<T> : MonoBehaviour, ISingleton where T : MonoSingleton<T>
1011
{
1112
#region Fields
@@ -147,4 +148,4 @@ public static void DestroyInstance()
147148

148149
#endregion
149150
}
150-
}
151+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /