public static void Start(GameObject go, Action<string, float> _onProgress, Action _finish) { if (_inst == null) { _inst = go.AddComponent<AssetUpdater>(); _inst.onProgress = _onProgress; _inst.onFinish = _finish; } }
void OnDestroy() { _inst = null; }