2023-08-11 23:29:39 +08:00

17 lines
717 B
C#

#pragma warning disable 618
/// <summary>
/// A Singleton for use when your component needs to be accessed at any given (run)time and can be automagically created on demand.
/// To use, override <see cref="UnitySingleton.InitAfterRegisteringAsSingleInstance"/> and write your initialization logic.
/// If your singleton shouldn't be destroyed when moving between scenes (<see cref="UnityEngine.Object.DontDestroyOnLoad"/>),
/// Override <see cref="UnitySingleton.DontDestroySingleton"/> and return true.
/// Like this:
///
/// protected override bool DontDestroySingleton
/// {
/// get { return true; }
/// }
///
/// </summary>
public abstract class CodeGeneratedSingleton : UnitySingleton
{
}