Frameworks

Q Singleton

Current Repository Is Longer Support It’s integrate to QFramework

QSingleton

Graceful Unity3D C# singleton implement toolkit.

It make everything to singleton gracefully!

Available on AssetStore

Feature:

  • C#/MonoBehaviour Class Singleton Implement Tool
  • Get property method to implement singleton

Quick Start:

namespace QFramework.Example
{
	[QMonoSingletonPath("[Audio]/AudioManager")]
	public class AudioManager : ManagerBase,ISingleton
	{
		public static AudioManager Instance
		{
			get { return QMonoSingletonProperty<AudioManager>.Instance; }
		}
		
		public void OnSingletonInit()
		{
			
		}

		public void Dispose()
		{
			QMonoSingletonProperty<AudioManager>.Dispose();
		}


		public void PlaySound(string soundName)
		{
			
		}

		public void StopSound(string soundName)
		{
			
		}
	}
}

You will see result:

Contact:

Doc:

Support Projects: