예제 #1
0
 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;
     }
 }
예제 #2
0
 void OnDestroy()
 {
     _inst = null;
 }