Ejemplo n.º 1
0
    private void AddNewArrow()
    {
        GameEnums.InventoryCodeStatus result = _playerController.AddItemsToInventory(_itemArrow);

        if (result == GameEnums.InventoryCodeStatus.OBJECTADDED)
        {
            inventoryViewController.SetInventory(_playerController.GetInventory);
        }
    }
Ejemplo n.º 2
0
    private void AddNewShield()
    {
        Item item = _itemsCreator.CreateRandItem("Shield", 10, 100, 1, 100);

        GameEnums.InventoryCodeStatus result = _playerController.AddItemsToInventory(item);

        if (result == GameEnums.InventoryCodeStatus.OBJECTADDED)
        {
            inventoryViewController.SetInventory(_playerController.GetInventory);
        }
    }