Unity 6.5 업그레이드와 신규 프로토타입 기반 구축
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Northbound
|
||||
|
||||
private void FindSpawnPoints()
|
||||
{
|
||||
PlayerSpawnPoint[] points = FindObjectsByType<PlayerSpawnPoint>(FindObjectsSortMode.None);
|
||||
PlayerSpawnPoint[] points = FindObjectsByType<PlayerSpawnPoint>();
|
||||
|
||||
// spawnIndex로 정렬
|
||||
var sortedPoints = points.OrderBy(p => p.spawnIndex == -1 ? int.MaxValue : p.spawnIndex);
|
||||
@@ -131,4 +131,4 @@ namespace Northbound
|
||||
base.OnDestroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user