void Start() { INSTANCE = this; CanConfirm = false; m_MenuStatus = StageMenuStatus.Selecting; m_StageSelector = GameObject.Find("StageSelectionAssets") as GameObject; if (GameObject.Find("Chapter00").GetComponent <M_MenuSelection>() != null) { m_Chapter00 = GameObject.Find("Chapter00").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter00 = GameObject.Find("Chapter00").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter01").GetComponent <M_MenuSelection>() != null) { m_Chapter01 = GameObject.Find("Chapter01").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter01 = GameObject.Find("Chapter01").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter02").GetComponent <M_MenuSelection>() != null) { m_Chapter02 = GameObject.Find("Chapter02").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter02 = GameObject.Find("Chapter02").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter03").GetComponent <M_MenuSelection>() != null) { m_Chapter03 = GameObject.Find("Chapter03").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter03 = GameObject.Find("Chapter03").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter04").GetComponent <M_MenuSelection>() != null) { m_Chapter04 = GameObject.Find("Chapter04").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter04 = GameObject.Find("Chapter04").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter05").GetComponent <M_MenuSelection>() != null) { m_Chapter05 = GameObject.Find("Chapter05").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter05 = GameObject.Find("Chapter05").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter06").GetComponent <M_MenuSelection>() != null) { m_Chapter06 = GameObject.Find("Chapter06").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter06 = GameObject.Find("Chapter06").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Chapter07").GetComponent <M_MenuSelection>() != null) { m_Chapter07 = GameObject.Find("Chapter07").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Chapter07 = GameObject.Find("Chapter07").AddComponent <M_MenuSelection>() as M_MenuSelection; } m_CurrentStageSelection = StageSelection.Chapter00; m_DesiredStageSelection = StageSelection.Chapter00; }
void Start() { INSTANCE = this; CanConfirm = false; m_MenuStatus = StageMenuStatus.Selecting; m_StageSelector = GameObject.Find("StageSelectionAssets") as GameObject; if (GameObject.Find("Chapter00").GetComponent<M_MenuSelection>() != null) m_Chapter00 = GameObject.Find("Chapter00").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter00 = GameObject.Find("Chapter00").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter01").GetComponent<M_MenuSelection>() != null) m_Chapter01 = GameObject.Find("Chapter01").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter01 = GameObject.Find("Chapter01").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter02").GetComponent<M_MenuSelection>() != null) m_Chapter02 = GameObject.Find("Chapter02").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter02 = GameObject.Find("Chapter02").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter03").GetComponent<M_MenuSelection>() != null) m_Chapter03 = GameObject.Find("Chapter03").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter03 = GameObject.Find("Chapter03").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter04").GetComponent<M_MenuSelection>() != null) m_Chapter04 = GameObject.Find("Chapter04").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter04 = GameObject.Find("Chapter04").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter05").GetComponent<M_MenuSelection>() != null) m_Chapter05 = GameObject.Find("Chapter05").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter05 = GameObject.Find("Chapter05").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter06").GetComponent<M_MenuSelection>() != null) m_Chapter06 = GameObject.Find("Chapter06").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter06 = GameObject.Find("Chapter06").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Chapter07").GetComponent<M_MenuSelection>() != null) m_Chapter07 = GameObject.Find("Chapter07").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chapter07 = GameObject.Find("Chapter07").AddComponent<M_MenuSelection>() as M_MenuSelection; m_CurrentStageSelection = StageSelection.Chapter00; m_DesiredStageSelection = StageSelection.Chapter00; }