void Start() { CONTROLLER = this; DesiredCameraPos = 0.0f; m_Status = MAIN_MENU_STATUS.FADE_IN; m_PressStartMatarial = GameObject.Find("Press_Start").GetComponent <Renderer>().material; m_PressStartMatarial.color = new Color(m_PressStartMatarial.color.r, m_PressStartMatarial.color.g, m_PressStartMatarial.color.b, 0.0f); m_FadePlaneMatarial = GameObject.Find("FadePlane").GetComponent <Renderer>().material; m_LogoMaterial_0 = GameObject.Find("Logo_Title_0").GetComponent <Renderer>().material; m_LogoMaterial_1 = GameObject.Find("Logo_Title_1").GetComponent <Renderer>().material; m_LogoMaterial_2 = GameObject.Find("Logo_Title_2").GetComponent <Renderer>().material; m_AllRightsInfoMaterial = GameObject.Find("All_Rights_Info").GetComponent <Renderer>().material; m_LogoMaterial_0.color = new Color(m_LogoMaterial_0.color.r, m_LogoMaterial_0.color.g, m_LogoMaterial_0.color.b, 1.0f); m_LogoMaterial_1.color = new Color(m_LogoMaterial_1.color.r, m_LogoMaterial_1.color.g, m_LogoMaterial_1.color.b, 0.0f); m_LogoMaterial_2.color = new Color(m_LogoMaterial_2.color.r, m_LogoMaterial_2.color.g, m_LogoMaterial_2.color.b, 0.0f); m_AlphaChangeSpeed = 1.0f; m_LogoAlphaFadeSpeed = new float[3] { 1.0f, 1.5f, 2.0f }; m_FadeSpeed = 1.0f; m_HintConfirm = GameObject.Find("Hint_Confirm").AddComponent <M_MenuSelection>(); m_HintCancel = GameObject.Find("Hint_Cancel").AddComponent <M_MenuSelection>(); m_HintSelect = GameObject.Find("Hint_Select").AddComponent <M_MenuSelection>(); m_HintConfirm.DesiredAlpha = 0.0f; m_HintCancel.DesiredAlpha = 0.0f; m_HintSelect.DesiredAlpha = 0.0f; M_GlobalSetting.SetGlobalLanguage(M_GlobalSetting.Language.English); m_DesiredOpenName = "Turtorial_Level_01"; }
void Start() { m_LanguageMenuStatus = LanguageMenuStatus.Selecting; m_LanguageSelector = GameObject.Find("Lan_Selections") as GameObject; if (GameObject.Find("Lan_0_LanguageEnglish").GetComponent<M_MenuSelection>() != null) m_English = GameObject.Find("Lan_0_LanguageEnglish").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_English = GameObject.Find("Lan_0_LanguageEnglish").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Lan_1_LanguageJapanese").GetComponent<M_MenuSelection>() != null) m_Japanese = GameObject.Find("Lan_1_LanguageJapanese").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Japanese = GameObject.Find("Lan_1_LanguageJapanese").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Lan_2_LanguageChinese").GetComponent<M_MenuSelection>() != null) m_Chinese = GameObject.Find("Lan_2_LanguageChinese").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Chinese = GameObject.Find("Lan_2_LanguageChinese").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Lan_SelectLineLeft").GetComponent<M_MenuSelection>() != null) m_SelectLineLeft = GameObject.Find("Lan_SelectLineLeft").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectLineLeft = GameObject.Find("Lan_SelectLineLeft").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Lan_SelectLineRight").GetComponent<M_MenuSelection>() != null) m_SelectLineRight = GameObject.Find("Lan_SelectLineRight").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectLineRight = GameObject.Find("Lan_SelectLineRight").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Lan_SelectPaint").GetComponent<M_MenuSelection>() != null) m_SelectPaint = GameObject.Find("Lan_SelectPaint").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectPaint = GameObject.Find("Lan_SelectPaint").AddComponent<M_MenuSelection>() as M_MenuSelection; m_DesiredStatus = LanguageSelection.English; m_LanguageStatus = LanguageSelection.English; }
void Start() { m_PauseMenuStatus = PauseMenuStatus.Selecting; m_MenuSelector = GameObject.Find("Menu") as GameObject; if (GameObject.Find("Resume").GetComponent<M_MenuSelection>() != null) m_ReturnToGame = GameObject.Find("Resume").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_ReturnToGame = GameObject.Find("Resume").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Restart").GetComponent<M_MenuSelection>() != null) m_Restart = GameObject.Find("Restart").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_Restart = GameObject.Find("Restart").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("ExitGame").GetComponent<M_MenuSelection>() != null) m_BackToMainMenu = GameObject.Find("ExitGame").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_BackToMainMenu = GameObject.Find("ExitGame").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("SelectLineL").GetComponent<M_MenuSelection>() != null) m_SelectLineLeft = GameObject.Find("SelectLineL").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectLineLeft = GameObject.Find("SelectLineL").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("SelectLineR").GetComponent<M_MenuSelection>() != null) m_SelectLineRight = GameObject.Find("SelectLineR").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectLineRight = GameObject.Find("SelectLineR").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("SelectPaint").GetComponent<M_MenuSelection>() != null) m_SelectPaint = GameObject.Find("SelectPaint").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectPaint = GameObject.Find("SelectPaint").AddComponent<M_MenuSelection>() as M_MenuSelection; m_DesiredStatus = PauseMenuSelection.ReturnToGame; m_CurrentMenuStatus = PauseMenuSelection.ReturnToGame; m_FadePlane = GameObject.Find("FadePlane").GetComponent<Renderer>().material; m_DesiredStageName = Application.loadedLevelName; }
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() { m_AssembleMenuStatus = AssembleMenuStatus.Selecting; m_MenuSelector = GameObject.Find("Title_Selections") as GameObject; if (GameObject.Find("Ass_GameStart").GetComponent <M_MenuSelection>() != null) { m_GameStart = GameObject.Find("Ass_GameStart").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_GameStart = GameObject.Find("Ass_GameStart").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Ass_StageSelect").GetComponent <M_MenuSelection>() != null) { m_StageSelect = GameObject.Find("Ass_StageSelect").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_StageSelect = GameObject.Find("Ass_StageSelect").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Ass_AboutAuthor").GetComponent <M_MenuSelection>() != null) { m_AboutAuthor = GameObject.Find("Ass_AboutAuthor").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_AboutAuthor = GameObject.Find("Ass_AboutAuthor").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Ass_SelectLineLeft").GetComponent <M_MenuSelection>() != null) { m_SelectLineLeft = GameObject.Find("Ass_SelectLineLeft").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_SelectLineLeft = GameObject.Find("Ass_SelectLineLeft").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Ass_SelectLineRight").GetComponent <M_MenuSelection>() != null) { m_SelectLineRight = GameObject.Find("Ass_SelectLineRight").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_SelectLineRight = GameObject.Find("Ass_SelectLineRight").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Ass_SelectPaint").GetComponent <M_MenuSelection>() != null) { m_SelectPaint = GameObject.Find("Ass_SelectPaint").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_SelectPaint = GameObject.Find("Ass_SelectPaint").AddComponent <M_MenuSelection>() as M_MenuSelection; } m_CurrentMenuStatus = AssembleMenuSelection.GameStart; m_DesiredStatus = AssembleMenuSelection.GameStart; }
void Start() { m_PauseMenuStatus = PauseMenuStatus.Selecting; m_MenuSelector = GameObject.Find("Menu") as GameObject; if (GameObject.Find("Resume").GetComponent <M_MenuSelection>() != null) { m_ReturnToGame = GameObject.Find("Resume").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_ReturnToGame = GameObject.Find("Resume").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("Restart").GetComponent <M_MenuSelection>() != null) { m_Restart = GameObject.Find("Restart").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_Restart = GameObject.Find("Restart").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("ExitGame").GetComponent <M_MenuSelection>() != null) { m_BackToMainMenu = GameObject.Find("ExitGame").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_BackToMainMenu = GameObject.Find("ExitGame").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("SelectLineL").GetComponent <M_MenuSelection>() != null) { m_SelectLineLeft = GameObject.Find("SelectLineL").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_SelectLineLeft = GameObject.Find("SelectLineL").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("SelectLineR").GetComponent <M_MenuSelection>() != null) { m_SelectLineRight = GameObject.Find("SelectLineR").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_SelectLineRight = GameObject.Find("SelectLineR").AddComponent <M_MenuSelection>() as M_MenuSelection; } if (GameObject.Find("SelectPaint").GetComponent <M_MenuSelection>() != null) { m_SelectPaint = GameObject.Find("SelectPaint").GetComponent <M_MenuSelection>() as M_MenuSelection; } else { m_SelectPaint = GameObject.Find("SelectPaint").AddComponent <M_MenuSelection>() as M_MenuSelection; } m_DesiredStatus = PauseMenuSelection.ReturnToGame; m_CurrentMenuStatus = PauseMenuSelection.ReturnToGame; m_FadePlane = GameObject.Find("FadePlane").GetComponent <Renderer>().material; m_DesiredStageName = Application.loadedLevelName; }
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() { m_AssembleMenuStatus = AssembleMenuStatus.Selecting; m_MenuSelector = GameObject.Find("Title_Selections") as GameObject; if (GameObject.Find("Ass_GameStart").GetComponent<M_MenuSelection>() != null) m_GameStart = GameObject.Find("Ass_GameStart").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_GameStart = GameObject.Find("Ass_GameStart").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Ass_StageSelect").GetComponent<M_MenuSelection>() != null) m_StageSelect = GameObject.Find("Ass_StageSelect").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_StageSelect = GameObject.Find("Ass_StageSelect").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Ass_AboutAuthor").GetComponent<M_MenuSelection>() != null) m_AboutAuthor = GameObject.Find("Ass_AboutAuthor").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_AboutAuthor = GameObject.Find("Ass_AboutAuthor").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Ass_SelectLineLeft").GetComponent<M_MenuSelection>() != null) m_SelectLineLeft = GameObject.Find("Ass_SelectLineLeft").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectLineLeft = GameObject.Find("Ass_SelectLineLeft").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Ass_SelectLineRight").GetComponent<M_MenuSelection>() != null) m_SelectLineRight = GameObject.Find("Ass_SelectLineRight").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectLineRight = GameObject.Find("Ass_SelectLineRight").AddComponent<M_MenuSelection>() as M_MenuSelection; if (GameObject.Find("Ass_SelectPaint").GetComponent<M_MenuSelection>() != null) m_SelectPaint = GameObject.Find("Ass_SelectPaint").GetComponent<M_MenuSelection>() as M_MenuSelection; else m_SelectPaint = GameObject.Find("Ass_SelectPaint").AddComponent<M_MenuSelection>() as M_MenuSelection; m_CurrentMenuStatus = AssembleMenuSelection.GameStart; m_DesiredStatus = AssembleMenuSelection.GameStart; }
void Start() { CONTROLLER = this; DesiredCameraPos = 0.0f; m_Status = MAIN_MENU_STATUS.FADE_IN; m_PressStartMatarial = GameObject.Find("Press_Start").GetComponent<Renderer>().material; m_PressStartMatarial.color = new Color(m_PressStartMatarial.color.r, m_PressStartMatarial.color.g, m_PressStartMatarial.color.b, 0.0f); m_FadePlaneMatarial = GameObject.Find("FadePlane").GetComponent<Renderer>().material; m_LogoMaterial_0 = GameObject.Find("Logo_Title_0").GetComponent<Renderer>().material; m_LogoMaterial_1 = GameObject.Find("Logo_Title_1").GetComponent<Renderer>().material; m_LogoMaterial_2 = GameObject.Find("Logo_Title_2").GetComponent<Renderer>().material; m_AllRightsInfoMaterial = GameObject.Find("All_Rights_Info").GetComponent<Renderer>().material; m_LogoMaterial_0.color = new Color(m_LogoMaterial_0.color.r, m_LogoMaterial_0.color.g, m_LogoMaterial_0.color.b, 1.0f); m_LogoMaterial_1.color = new Color(m_LogoMaterial_1.color.r, m_LogoMaterial_1.color.g, m_LogoMaterial_1.color.b, 0.0f); m_LogoMaterial_2.color = new Color(m_LogoMaterial_2.color.r, m_LogoMaterial_2.color.g, m_LogoMaterial_2.color.b, 0.0f); m_AlphaChangeSpeed = 1.0f; m_LogoAlphaFadeSpeed = new float[3]{1.0f, 1.5f, 2.0f}; m_FadeSpeed = 1.0f; m_HintConfirm = GameObject.Find("Hint_Confirm").AddComponent<M_MenuSelection>(); m_HintCancel = GameObject.Find("Hint_Cancel").AddComponent<M_MenuSelection>(); m_HintSelect = GameObject.Find("Hint_Select").AddComponent<M_MenuSelection>(); m_HintConfirm.DesiredAlpha = 0.0f; m_HintCancel.DesiredAlpha = 0.0f; m_HintSelect.DesiredAlpha = 0.0f; M_GlobalSetting.SetGlobalLanguage(M_GlobalSetting.Language.English); m_DesiredOpenName = "Turtorial_Level_01"; }