public void SetPosState(RoomPosState state, bool showAni) { //if (m_PosState != null) //{ // m_PosState.SetPosState(state, showAni); //} }
public void SetPosState(RoomPosState state, bool showAni) { bool show = false; if (state == RoomPosState.Open) { show = true; } if (m_Light != null) { m_Light.SetActive(show); } PlayAnimation(CloseAni, show, showAni); }