Exemplo n.º 1
0
 public FieldBlockStatus(FieldBlockStatus status)
 {
     fouled               = status.fouled;
     plantedCrop          = status.plantedCrop;
     currentCrop          = new Crop(status.currentCrop);
     lastPlantedCrop      = new Crop(status.lastPlantedCrop);
     currentGrowingPeriod = status.currentGrowingPeriod;
 }
Exemplo n.º 2
0
    private void Awake()
    {
        status = new FieldBlockStatus();
        TimeManager.OnTimePassed += TimeManager_OnTimePassed;
        cropModels            = new GameObject[subFields.Length];
        fertiliserModels      = new GameObject[subFields.Length];
        beforePlougheMaterial = new Material[plotRenderers.Length];

        for (int i = 0; i < plotRenderers.Length; i++)
        {
            beforePlougheMaterial[i] = plotRenderers[i].material;
        }
    }