public void ShowSpeechInfo() { if (mSpeechInfoState.Equals(SpeechInfoState.SpeechInfoState_0)) { mSpeechInfoState = SpeechInfoState.SpeechInfoState_0; mCurrentSpeechInfoObj = m_SpeechInfoState_0; m_SpeechInfoState_0.SetActive(true); } else if (mSpeechInfoState.Equals(SpeechInfoState.SpeechInfoState_1)) { mSpeechInfoState = SpeechInfoState.SpeechInfoState_1; mCurrentSpeechInfoObj = m_SpeechInfoState_1; m_SpeechInfoState_1.SetActive(true); } }
public void CreateBuddyCommandsList(SpeechInfoState curr_speech_info_state) { Debug.Log("Creating Commands List for Buddy!"); mBuddyCommandTrigDict.Clear(); mBuddyCommandsList.Clear(); List <string> matches = new List <string>(); switch (curr_speech_info_state) { case SpeechInfoState.SpeechInfoState_0: //SpeechInfoState_0 //Hi Anim matches.Add("hi buddy"); matches.Add("High buddy"); matches.Add("hi birdie"); foreach (string _hi_match in matches) { mBuddyCommandsList.Add(_hi_match); mBuddyCommandTrigDict.Add(_hi_match, Buddy_Animation_Triggers.Hi); } break; case SpeechInfoState.SpeechInfoState_1: //SpeechInfoState_1 //Let's get ice cream matches.Add("let's get ice cream"); matches.Add("it's get ice cream"); matches.Add("its good ice cream"); matches.Add("that's good ice cream"); matches.Add("that's good ice-cream"); foreach (string _icc_match in matches) { mBuddyCommandsList.Add(_icc_match); mBuddyCommandTrigDict.Add(_icc_match, Buddy_Animation_Triggers.GetExcitedForIcecream); } break; } }