외관 적용 및 레이아웃 수정
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user