6-IFramework-Unity-单例

public class Test : IFramework.Singleton.Singleton<Test>
{
    internal void Dosth()
    {
       
    }
}
//场景内单例物体路径
[IFramework.Singleton.MonoSingletonPath("xx/xx")]
public class TestMono : IFramework.Singleton.MonoSingleton<TestMono>
{
    void Use()
    {
        Test.instance.Dosth();
        TestMono.instance.Dosth();

    }

    private void Dosth()
    {
        
    }
}