internal void Initialize(ARSolutionsSeaBreezeController mono) { _mono = mono; _powercellData = new PowercellData(); _powercellData.Initialize(200, 200); StartCoroutine(UpdatePowerRelay()); }
private void BatteryContainerOnOnAddItem(InventoryItem item) { var battery = item.item; var techType = battery.GetTechType(); var id = battery.GetComponent <PrefabIdentifier>().Id; var charge = battery.GetComponent <Battery>().charge; var capacity = battery.GetComponent <Battery>().capacity; var data = new PowercellData(); data.Initialize(battery); _powercellTracker.Add(data); UpdateCapacity(); UpdateCharge(); //_mono.UpdateSlots(); UpdateDisplay(); QuickLogger.Debug($"Added {techType}|{charge} with id {id} to the trackers", true); }