// Start is called before the first frame update void Start() { mainCamera = Camera.main; grid.sqrRadius = (float)Math.Pow(crowdMgr.Radius * 2, 2); for (int i = 0; i < Count; i++) { weaponMgr.Equip(i, i); Weapons[i] = i; GridID[i] = -1; Vector3 pos = new Vector3(UnityEngine.Random.Range(0, spawnRadius * 2), 0, UnityEngine.Random.Range(0, spawnRadius * 2)); Quaternion rot = Quaternion.Euler(0, UnityEngine.Random.Range(0, 360), 0); Positions[i] = pos; Rotations[i] = rot; crowdMgr.SetTransform(i, pos, rot); } }