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