wandering implemented

This commit is contained in:
2022-04-25 17:41:22 +03:00
parent fd683b4580
commit a748b342a8
18 changed files with 325 additions and 233 deletions

View File

@@ -29,7 +29,7 @@ public class SlimeSpawner : MonoBehaviour
{
float slimeRandom = Random.Range(0, slimeTypes.Count);
float spawnRandom = Random.Range(0, spawnLocations.Count);
Instantiate(slimeTypes[Mathf.RoundToInt(slimeRandom)], spawnLocations[Mathf.RoundToInt(spawnRandom)].position, Quaternion.identity);
Instantiate(slimeTypes[Mathf.RoundToInt(slimeRandom)], spawnLocations[Mathf.RoundToInt(spawnRandom)].position, Quaternion.Euler(0f, Random.Range(0f, 360f), 0f));
}
}