使用案例
using QFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UseCase : Singleton<UseCase>
{
/// <summary>
/// 非公開構(gòu)造函數(shù)必不可少
/// </summary>
protected UseCase()
{
}
/// <summary>
/// 輸出
/// </summary>
public void Output()
{
Debug.Log("Hello world!!");
}
}
注
無生命周期單利模式無需掛在物體上