private void InitDefaultControllerMsg() { FindObj(); m_trigger = m_helpMessage.transform.Find("Trigger"); m_trigger_text = m_trigger.Find("Text").GetComponent <Text>(); m_TriggerMsg = HVRPluginCore.GetDialogueContent("Hvr_trigger"); m_VolumeMsg = HVRPluginCore.GetDialogueContent("Hvr_volume_short"); m_BasckShortMsg = HVRPluginCore.GetDialogueContent("Hvr_back_short"); m_BackLongMsg = HVRPluginCore.GetDialogueContent("Hvr_back_long"); m_HomeShortMsg = HVRPluginCore.GetDialogueContent("Hvr_home_short"); m_HomeLongMsg = HVRPluginCore.GetDialogueContent("Hvr_home_long"); m_ConfirmMsg = HVRPluginCore.GetDialogueContent("Hvr_trigger"); }
private void InitPhoneControllerMsg() { FindObj(); m_PhoneVolumeMsg = HVRPluginCore.GetDialogueContent("Hvr_phone_volume_short"); if (m_PhoneVolumeMsg == null) { HVRLogCore.LOGI(TAG, "mPhoneVolumeMsg is null"); m_phoneHelpMessage.gameObject.SetActive(false); return; } m_PhoneBasckShortMsg = HVRPluginCore.GetDialogueContent("Hvr_phone_back_short"); m_PhoneBackLongMsg = HVRPluginCore.GetDialogueContent("Hvr_phone_back_long"); m_PhoneHomeShortMsg = HVRPluginCore.GetDialogueContent("Hvr_phone_home_short"); m_PhoneHomeLongMsg = HVRPluginCore.GetDialogueContent("Hvr_phone_home_long"); m_PhoneConfirmMsg = HVRPluginCore.GetDialogueContent("Hvr_phone_confirm"); m_VolumeMsg = m_PhoneVolumeMsg; m_BasckShortMsg = m_PhoneBasckShortMsg; m_BackLongMsg = m_PhoneBackLongMsg; m_HomeShortMsg = m_PhoneHomeShortMsg; m_HomeLongMsg = m_PhoneHomeLongMsg; m_ConfirmMsg = m_PhoneConfirmMsg; }