private void Update() { switch (m_input.SceneCheck()) { case m_titleSceneNum: m_input.ResetSceneNum(); TitleObjOn(); break; case m_stageSerectSceneNum: m_input.ResetSceneNum(); StageObjOn(); break; case m_gameSceneNum: m_stageCreate.GetComponent <StageOrder>().SetFirstStage(m_input.ChoiceObj().GetComponent <StageSelectButton>().GetStageNumber()); m_stageCreate.GetComponent <StageMapCSVread>().MapCsvRead(m_stageCreate.GetComponent <StageOrder>().GetNextStage()); if (m_stageCreate.GetComponent <StageMapCSVread>().GetReadEndFlag() == true) { m_stageCreate.GetComponent <StageMapCSVread>().ReadEndFlagOff(); GameObjOn(); m_input.ResetSceneNum(); } break; case m_retryNum: m_input.ResetSceneNum(); Retry(); break; case m_escapeNum: m_input.ResetSceneNum(); Escape(); break; default: break; } }