Q Singleton

MIT
by liangxiegame

Graceful Unity3D C# Singleton Pattern Implement Tookit

( Crawled 38 minutes ago )
+

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: