Ejemplo n.º 1
0
    private void ExpandWarehouse()
    {
        App    app         = UnityEngine.Object.FindObjectOfType <App>();
        int    playerIndex = app.GetHumanIndex();
        Nation player      = State.getNations()[playerIndex];

        PlayerPayer.payWarehouseExpansion(player);
        uiUpdater.updateUI();
    }
Ejemplo n.º 2
0
    private void expandWarehouse()
    {
        App    app    = UnityEngine.Object.FindObjectOfType <App>();
        Nation player = State.getNations()[app.GetHumanIndex()];

        PlayerPayer.payWarehouseExpansion(player);
        storageCapacity.text = player.GetCurrentWarehouseCapacity().ToString();
        if (player.getNumberGood(MyEnum.Goods.lumber) < 1 || player.getAP() < 1)
        {
            expand.interactable = false;
        }
        storageCapacity.text = player.numberOfResourcesAndGoods().ToString() + "/" +
                               player.GetCurrentWarehouseCapacity().ToString();
    }