// Moves a gameobject to a free spawn point. public void Spawn(GameObject g) { g.transform.position = spawnPointManagerScript.GetSpawnPosition() + Vector3.up * 3f; }