Add missing script part
This commit is contained in:
parent
7f678a1a36
commit
49a5cc915e
@ -131,21 +131,13 @@ public class Main : MonoBehaviour
|
||||
|
||||
if (tree.name.StartsWith("AS") || tree.name.StartsWith("EU"))
|
||||
{
|
||||
if (tree.name.StartsWith("AS"))
|
||||
{
|
||||
renderedTrees.Add(Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVector)));
|
||||
}
|
||||
else
|
||||
{
|
||||
renderedTrees.Add(Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVectorShiftX)));
|
||||
}
|
||||
|
||||
renderedTrees.Add(Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVector)));
|
||||
}
|
||||
else
|
||||
{
|
||||
GameObject duzySKurwol = Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVector));
|
||||
duzySKurwol.transform.localScale = new Vector3(0.05f, 0.05f, 0.05f);
|
||||
renderedTrees.Add(duzySKurwol);
|
||||
GameObject bigTree = Instantiate(tree, new Vector3(i + positionShift_x + randomShiftX, 0, k + positionShift_z + randomShiftZ), Quaternion.Euler(rotationVector));
|
||||
bigTree.transform.localScale = new Vector3(0.05f, 0.05f, 0.05f);
|
||||
renderedTrees.Add(bigTree);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user