public void CleanToiletReuest() { m_status = RoomActionState.clean; bool cleanFlg = m_controller.CleenToiletRequest(m_saveCallback, () => { // endCallback m_status = RoomActionState.idle; }); if (!cleanFlg) { m_status = RoomActionState.idle; } }
public bool CreatePoopRequest(int _poopNum) { m_status = RoomActionState.poop; bool createFlg = m_controller.CreatePoopRequest(_poopNum, m_saveCallback, () => { // endCallback m_status = RoomActionState.idle; }); if (!createFlg) { m_status = RoomActionState.idle; } return(createFlg); }