protected void TalkFin(string paramCombie) { string[] userDatas = paramCombie.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries); SenseActorType sat = (SenseActorType)Enum.Parse(typeof(SenseActorType), userDatas[0]); string talkKey = userDatas[1]; int index = int.Parse(userDatas[2]); GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_SenseTalked, (int)sat, int.Parse(talkKey), index); }
public void Talk(SenseActorType sat, string talkKey, int index = 0, float time = 0f) { if (SenseActorObjDic_.ContainsKey(sat)) { string combie = string.Format("{0}:{1}:{2}", sat, talkKey, index); NpcHeadChat.Instance.Show(LanguageManager.instance.GetValue(talkKey), SenseActorObjDic_[sat][index], TalkCallBack, combie, time); SenseActorObjDic_[sat][index].GetComponent <Animator>().SetTrigger("Talk"); } }
public static int SenseTalk(ILuaState lua) { GameObject cinema = GameObject.Find("Cinema(Clone)"); if (cinema == null) { return(0); } int stk = 1; SenseActorType sat = (SenseActorType)L.ToInteger(stk++); string talkKey = L.ToString(stk++); int index = L.ToInteger(stk++); float timeLeft = (float)L.ToNumber(stk++); cinema.GetComponent <CinemaManager>().ActorTalk(sat, talkKey, index, timeLeft); return(0); }
public void ActorTalk(SenseActorType sat, string talkKey, int index, float time) { GameObject.FindObjectOfType <SenseBase>().Talk(sat, talkKey, index, time); }