완료 시간 알람 기능 복원 및 카메라 시점 기능 개발
This commit is contained in:
@@ -9,11 +9,12 @@ namespace CHN
|
||||
public int floorIndex;
|
||||
public List<Machine> machines = new();
|
||||
|
||||
public bool isEmptyFloor => machines.Count == 0;
|
||||
public bool isEmptyFloor;
|
||||
public Transform StartPoint;
|
||||
|
||||
public GameObject Outer;
|
||||
public GameObject TopSurfaces;
|
||||
public GameObject FloorGroundCollider;
|
||||
//public GameObject Ceiling;
|
||||
public GameObject VisualizationAreas;
|
||||
Transform CeilingQuad;
|
||||
@@ -29,6 +30,9 @@ namespace CHN
|
||||
case nameof(Outer):
|
||||
Outer = transform.GetChild(i).gameObject;
|
||||
break;
|
||||
case nameof(FloorGroundCollider):
|
||||
FloorGroundCollider = transform.GetChild(i).gameObject;
|
||||
break;
|
||||
//case nameof(Ceiling):
|
||||
// Ceiling = transform.GetChild(i).gameObject;
|
||||
// break;
|
||||
@@ -44,7 +48,7 @@ namespace CHN
|
||||
|
||||
public bool FloorContainsPoint(Vector3 pos)
|
||||
{
|
||||
var floorColliders = transform.GetComponents<BoxCollider>();
|
||||
var floorColliders = FloorGroundCollider.GetComponentsInChildren<BoxCollider>();
|
||||
|
||||
foreach(var collider in floorColliders)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user