mirror of
https://github.com/zoriya/Magical-Garden.git
synced 2025-12-06 07:16:15 +00:00
Adding random tree at the begining
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
if (index != plots.Length)
|
||||
PlaceTree(tree, index);
|
||||
else
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user