예제 #1
0
        private void OnDisable()
        {
//            EnergyJobHandle.Complete();
            ChargeCountJobHandle.Complete();
            Hub.ChargingBatteryCounts.Dispose();
            Battery.AllData.Dispose();
            _droneInfo.Dispose();
            _dronesToDrop.Dispose();
            _instance = null;
        }
예제 #2
0
 public static BatteryManager New()
 {
     _instance = new GameObject("BatteryManager").AddComponent <BatteryManager>();
     return(_instance);
 }