diff --git a/Basic/ClientDriven/Assets/Scripts/ServerIngredientSpawner.cs b/Basic/ClientDriven/Assets/Scripts/ServerIngredientSpawner.cs index f16aaf2b6..631cf83a9 100644 --- a/Basic/ClientDriven/Assets/Scripts/ServerIngredientSpawner.cs +++ b/Basic/ClientDriven/Assets/Scripts/ServerIngredientSpawner.cs @@ -52,7 +52,8 @@ void FixedUpdate() foreach (var spawnPoint in m_SpawnPoints) { var newIngredientObject = Instantiate(m_IngredientPrefab, spawnPoint.transform.position, spawnPoint.transform.rotation); - newIngredientObject.transform.position = spawnPoint.transform.position; + newIngredientObject.transform.position = spawnPoint.transform.position + + new Vector3(UnityEngine.Random.Range(-0.25f, 0.25f), 0, UnityEngine.Random.Range(-0.25f, 0.25f)); var ingredient = newIngredientObject.GetComponent(); ingredient.NetworkObject.Spawn(); ingredient.currentIngredientType.Value = (IngredientType)m_RandomGenerator.Next((int)IngredientType.MAX);