Exemple #1
0
    // Use this for initialization
    void Start()
    {
        buildingService = new BuildingService();
        unitService     = new UnitService();
        placedBuildings = new List <BuildingView>();

        WoodRessource  = 500;
        MetalRessource = 500;
        FoodRessource  = 500;

        RessourceInfo.text = DisplayRessources();

        buildings = buildingService.GetBuildable();
        units     = unitService.GetAll();

        InvokeRepeating("AddRessources", 1, 1);
    }