코드 경고 제거 및 미사용 코드 제거
This commit is contained in:
@@ -14,8 +14,6 @@ namespace Northbound
|
||||
[Header("Common Settings")]
|
||||
[Tooltip("맵 생성 시작 시 자동 생성")]
|
||||
[SerializeField] private bool generateOnSpawn = true;
|
||||
[Tooltip("생성된 오브젝트를 부모로 그룹화")]
|
||||
[SerializeField] private bool groupUnderParent = true;
|
||||
|
||||
[Header("Map Boundaries")]
|
||||
[Tooltip("X 범위 (-width/2 ~ +width/2)")]
|
||||
@@ -155,7 +153,7 @@ namespace Northbound
|
||||
|
||||
private void FindImportantPositions()
|
||||
{
|
||||
Core core = FindObjectOfType<Core>();
|
||||
Core core = FindFirstObjectByType<Core>();
|
||||
if (core != null)
|
||||
{
|
||||
_corePosition = new Vector2(core.transform.position.x, core.transform.position.z);
|
||||
@@ -165,7 +163,7 @@ namespace Northbound
|
||||
_corePosition = Vector2.zero;
|
||||
}
|
||||
|
||||
Resource[] resources = FindObjectsOfType<Resource>();
|
||||
Resource[] resources = FindObjectsByType<Resource>(FindObjectsSortMode.InstanceID);
|
||||
if (resources.Length > 0)
|
||||
{
|
||||
_initialResourcePosition = new Vector2(resources[0].transform.position.x, resources[0].transform.position.z);
|
||||
|
||||
Reference in New Issue
Block a user