public void SetSystem(PlayerSystem player) { Owner = player; Owner.SpiritUISystem.Selling += OnSelling; Owner.SpiritUISystem.Upgrading += OnUpgrading; UIManager.Instance.BuildUISystem.PlaceNewSpiritClicked += OnPlacingNewSpirit; selection = Instantiate(Selection); selection.SetActive(false); void OnPlacingNewSpirit(SpiritData spiritData) { var placedSpirit = Owner.AvailableSpirits.Find(spirit => spirit.Index == spiritData.Index); Owner.AvailableSpirits.Remove(placedSpirit); PlacingSpirit?.Invoke(); } }
public InventorySystem(PlayerSystem player) { Owner = player; }
public ItemDropSystem(PlayerSystem player) => Owner = player;
public ResourceSystem(PlayerSystem player) { Owner = player; }
public ElementSystem(PlayerSystem player) => owner = player;