public void ToggleInventoryWindow() { if (_inventory == null && _player != null) { _inventory = new UI.InventoryWindow(new Vector2(200, 200), new Vector2(200, 200), _player.Inventory); } if (!_childs.Contains(_inventory)) AddChild(_inventory); else RemoveChild(_inventory); }
public void SetPlayer(Logic.Player player) { _player = player; _inventory = null; _character = null; }