public void Type(ChatterWithImages _chatter) { Type(_chatter.message); Length = _chatter.Length(); textController.SetChatter(_chatter); current = _chatter; }
IEnumerator PrintCoRoutine(ChatterWithImages chatter) { //check if there is a new user bool newUser = chatter.channel.id != userName.text; animator.SetBool("hide", newUser); //give some time to hide the previus user yield return(new WaitForEndOfFrame()); if (!animator.GetCurrentAnimatorStateInfo(0).IsTag("hidden") && newUser) { yield return(new WaitForSeconds(1f)); } animator.SetBool("hide", false); //change the current user's image, name and message and show it chatter.ChangeEmoteIndex(); userName.text = chatter.channel.id; yield return(chatter.channel.GetTexture(channelIcon)); if (!animator.GetCurrentAnimatorStateInfo(0).IsTag("showing")) { animator.SetTrigger("show"); } text.SetChatter(chatter); printing = false; }
public void SetChatter(ChatterWithImages chatter) { if (twife) { twife.SetChatter(chatter); } }
public void SetChatter(ChatterWithImages _chatter) => Type(_chatter);
private void Print(ChatterWithImages chatter) { printing = true; StartCoroutine(PrintCoRoutine(chatter)); }
public void Push(ChatterWithImages chatter) { queue.Add(chatter); }
public void SetChatter(ChatterWithImages _chatter) { this.chatter = _chatter; }