외관 적용 및 레이아웃 수정

This commit is contained in:
정영민
2025-02-27 16:08:13 +09:00
parent 22231e588d
commit 5f8e6780aa
1223 changed files with 1236220 additions and 931 deletions

View File

@@ -14,7 +14,7 @@ namespace CHN
public GameObject Outer;
public GameObject TopSurfaces;
public GameObject Ceiling;
//public GameObject Ceiling;
public GameObject VisualizationAreas;
Transform CeilingQuad;
@@ -29,9 +29,9 @@ namespace CHN
case nameof(Outer):
Outer = transform.GetChild(i).gameObject;
break;
case nameof(Ceiling):
Ceiling = transform.GetChild(i).gameObject;
break;
//case nameof(Ceiling):
// Ceiling = transform.GetChild(i).gameObject;
// break;
case nameof(VisualizationAreas):
VisualizationAreas = transform.GetChild(i).gameObject;
break;
@@ -58,25 +58,25 @@ namespace CHN
public void SetInternalState()
{
Ceiling.SetActive(true);
//Ceiling.SetActive(true);
TopSurfaces.SetActive(false);
}
public void SetExternalState()
{
TopSurfaces.SetActive(false);
Ceiling.SetActive(false);
//Ceiling.SetActive(false);
}
public void UnderCeilingControl(Vector3 pos)
{
if (Ceiling == null)
return;
//if (Ceiling == null)
// return;
float height = CeilingQuad.transform.position.y - ceilingActiveRange;
//float height = CeilingQuad.transform.position.y - ceilingActiveRange;
bool isUnder = pos.y < height;
Ceiling.SetActive(isUnder);
//bool isUnder = pos.y < height;
//Ceiling.SetActive(isUnder);
}
}
}