示例#1
0
    public void startBuildBuilding(IBuilding newBuilding)
    {
        // Spend the cash money
        // NOTE: validation is done at button click time
        gameState.spendForBuilding(newBuilding);

        // Start the construction process of this new building
        StartCoroutine(waitForConstruction(newBuilding));
    }