wandering implemented
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user