Adding random tree at the begining

This commit is contained in:
Anonymous Raccoon
2018-08-14 00:08:47 +02:00
parent 1128d85674
commit e771a6f9a1

View File

@@ -153,13 +153,15 @@ public class InventoryManager : MonoBehaviour
while(!CanPlantAt(index, tree))
{
print(index);
index++;
if (index > plots.Length)
continue;
if (index == plots.Length)
break;
}
PlaceTree(tree, index);
if (index != plots.Length)
PlaceTree(tree, index);
else
i--;
}
}