#pragma warning disable 618 /// /// 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 and write your initialization logic. /// If your singleton shouldn't be destroyed when moving between scenes (), /// Override and return true. /// Like this: /// /// protected override bool DontDestroySingleton /// { /// get { return true; } /// } /// /// public abstract class CodeGeneratedSingleton : UnitySingleton { }