public void CreateWorldObject() { WorldObject wO = wOFactory.MakeRandomObject(); Transform t = wO.transform; var unitInsideCircle = UnityEngine.Random.insideUnitCircle * spawnRadius; t.localPosition = new Vector3(unitInsideCircle.x, this.transform.position.y, unitInsideCircle.y); t.localRotation = UnityEngine.Random.rotation; wO.SetColor(UnityEngine.Random.ColorHSV(0f, 1f, 0.5f, 1f, 0.25f, 1f, 1f, 1f)); }