UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"spawn 2d game object in unity 3d"
void SpawnBottles() { print(levelvalue); if (leveldata.Levels[levelvalue-1].TotalNumberofBottles.Length > 4) { SpawnInMultipleGrids = true; numberofbottlestoSpawnInFirstGrid = TotalBottles - TotalBottles / 2; numberofbottlestoSpawnInSecondGrid = TotalBottles / 2; } else { SpawnInMultipleGrids = false; numberofbottlestoSpawnInFirstGrid = TotalBottles; } DuplicateSelectedBottles(); }