Пример #1
0
    public void Produce()
    {
        currentStock.Substract(prod);
        productionDone -= productionSpeed;

        if (productionCurrent.citizenNumber > 0)
        {
            for (int x = 0; x < productionCurrent.citizenNumber; x++)
            {
                Citizen cit = GameState.instance.citizenGenerator.CreateCitizen(productionCase);
                cit.MoveTo(new Vector2(productionCase.x + 0.5f, productionCase.y));
            }
        }
        if (productionCurrent.tool != null)
        {
        }
        if (patron.type == BuildingType.ruins)
        {
            GameControl.state = GameStateEnum.inGameVictory;
        }
    }