Advertisement
Munchy2007

Unet5Tut6Pt1GetRandonSpawnPoint

Feb 28th, 2016
6,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. [Server]
  2. Vector3 GetRandomSpawnPoint()
  3. {
  4.     var spawnPoints = NetworkManager.singleton.startPositions;
  5.     return spawnPoints[Random.Range(0,spawnPoints.Count)].position;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement