Add scaling big trees

This commit is contained in:
nlitkowski 2021-12-20 01:43:49 +01:00
parent cf6c4ff6f9
commit f8ed3cfd39

View File

@ -134,7 +134,9 @@ public class Main : MonoBehaviour
}
else
{
renderedTrees.Add(Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVectorShiftX)));
GameObject duzySKurwol = Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVectorShiftX));
duzySKurwol.transform.localScale = new Vector3(0.05f, 0.05f, 0.05f);
renderedTrees.Add(duzySKurwol);
}
}
}