public void Reset () { chair = null; hasChair = false; state = tableStates.FREE; }
public void reset() { state = tableStates.FREE; if (hasChair) { NavMeshObstacle mesh = chair.GetComponent<NavMeshObstacle>(); PlaceableObject theChair = chair.GetComponent<PlaceableObject>(); theChair.taken = true; mesh.carving = true; } }