NGSingleton T  MembersScoreFlash API Documentation V4.6.0

The NGSingleton T  type exposes the following members.
Constructors

  NameDescription
Public methodNGSingleton T 
Back to Top
Methods

  NameDescription
Public methodAwake
Assigns instance when the scene is loaded and logs a warning when there already is an instance.
Public methodOnEnable
Assigns instance when code is compiled while playing.
Back to Top
Properties

  NameDescription
Public propertyStatic memberInstance
Provides access to the one and only Instance of T. If no instance of T can be found, the editor is paused to prevent the console being spammed with NullReferenceExceptions.
Back to Top
See Also