예제 #1
0
 public void Load()
 {
     foreach (var data in _datas)
     {
         if (data is IUpdatable)
         {
             ControllersUpdater.RemoveUpdate((IUpdatable)data);
         }
         var item = data;
         _saver.Load(ref item, _folderPath);
     }
     Loaded.Invoke();
 }
예제 #2
0
 public void FromLoad()
 {
     ControllersUpdater.RemoveUpdate(this);
 }
 public void Dispose()
 {
     ServiceLocator.GetDependency<RadarController>().RemoveObject(_gameObject);
     ControllersUpdater.RemoveUpdate(this);
     _gameObject.SetActive(false);
 }