Exemple #1
0
 /// <summary>
 /// 创建
 /// </summary>
 public static void Create()
 {
     if (_instance == null)
     {
         _instance = new GameObject("修复Shader").AddComponent <RepairShader>();
         DontDestroyOnLoad(_instance.gameObject);
     }
 }
Exemple #2
0
 /// <summary>
 /// 移除
 /// </summary>
 public static void Remove()
 {
     Destroy(_instance.gameObject);
     _instance = null;
 }