void OnTalkEnded(TalkEventArgs e) { if (e.ID == "brother_before") { StartCoroutine (LaunchAnimation ()); } else if (e.ID == "brother_after") { OngletManager.instance.HighlightNextOnglet (); } }
void OnTalkEnded(TalkEventArgs e) { if (e.ID == "piri") { if (e.AudioClipId != 0 && e.AudioClipId != 2) StartCoroutine (Insist ()); else if(e.AudioClipId == 2) OngletManager.instance.HighlightNextOnglet (); } }
void OnTalkEnded(TalkEventArgs eventArgs) { if (eventArgs.ID == "piri") { if (eventArgs.AudioClipId == 0) OngletManager.instance.HighlightNextOnglet (); StartCoroutine (Insist ()); } }
void OnTalkEnded(TalkEventArgs eventArgs) { if (eventArgs.ID == "piri") { if (eventArgs.AudioClipId == 0) { firstSentenceDone = true; listenTo.GetComponent<Animator>().SetBool("shaking", true); } else if (eventArgs.AudioClipId == 1) { TriggerAnimation (); } } }
void OnTalkEnded(TalkEventArgs e) { if (e.ID == "piri") { if (e.AudioClipId == 0) TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 1, Autoplay = true }); else if (e.AudioClipId != 4 && e.AudioClipId != 5) { StartCoroutine (Insist ()); if (e.AudioClipId == 1) { WolfEventManager.TriggerWolfListening (new WolfEventArgs { Listening = true }); travelling = true; } } } }
void OnTalkEnded(TalkEventArgs e) { if (e.ID == "piri") { if (e.AudioClipId < 3) StartCoroutine (Insist ()); else if (e.AudioClipId < 5) StartCoroutine (InsistRevealed ()); else if (e.AudioClipId == 5) TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "brother", AudioClipId = 1, Autoplay = true }); } else if (e.ID == "brother") { if (e.AudioClipId == 0) { TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 5, Autoplay = true }); } else if (e.AudioClipId == 1) { OngletManager.instance.HighlightNextOnglet (); } } }
void OnTalkEnded(TalkEventArgs e) { if (e.ID == "piri") { switch (e.AudioClipId) { case 0: TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "brother", AudioClipId = 1, Autoplay = true }); break; case 1: LaunchInterview (); break; case 2: case 3: case 4: question1Wrapper.SetActive (false); question2Wrapper.SetActive (true); break; case 5: case 6: if (highlightMoment == "forest") TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 7, Autoplay = true }); else if (highlightMoment == "bush") TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 8, Autoplay = true }); else TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 9, Autoplay = true }); break; case 7: case 8: case 9: OngletManager.instance.HighlightNextOnglet (); break; } } else if (e.ID == "brother") { switch (e.AudioClipId) { case 0: TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 0, Autoplay = true }); break; case 1: TalkEventManager.TriggerTalkSet (new TalkEventArgs { ID = "piri", AudioClipId = 1, Autoplay = true }); break; case 2: case 3: EndOfInterview (); break; } } }
public static void TriggerTalkStop(TalkEventArgs eventArgs = null) { if (TalkStop != null) TalkStop (eventArgs); }
public static void TriggerTalkSet(TalkEventArgs eventArgs = null) { if (TalkSet != null) TalkSet (eventArgs); }
public static void TriggerTalkEnded(TalkEventArgs eventArgs = null) { if (TalkEnded != null) TalkEnded (eventArgs); }
public static void TriggerTalkBegin(TalkEventArgs eventArgs = null) { if (TalkBegin != null) TalkBegin (eventArgs); }
void OnTalkStop(TalkEventArgs eventArgs) { if (eventArgs.ID == this.ID) { StopCurrent (); } }
// TalkSet event listener which allows to call SetCurrentClip without access to this talker's instance void OnTalkSet(TalkEventArgs eventArgs) { if (eventArgs.ID == this.ID) { // If it already has been played, we reset it if (audioClipsPlayed [eventArgs.AudioClipId]) audioClipsPlayed [eventArgs.AudioClipId] = false; SetCurrentClip (eventArgs.AudioClipId, eventArgs.Autoplay, eventArgs.Delay); } }