public FieldBlockStatus(FieldBlockStatus status) { fouled = status.fouled; plantedCrop = status.plantedCrop; currentCrop = new Crop(status.currentCrop); lastPlantedCrop = new Crop(status.lastPlantedCrop); currentGrowingPeriod = status.currentGrowingPeriod; }
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; } }