public MessageService(MessengerConfiguration configuration, ILog log, IMessageMapper mapper, IMessageProviderFactory factory) { this.State = MessengerState.Stopped; this.logger = log; this.Configuration = configuration; this.ProviderFactory = factory; this.Mapper = mapper; }
private void OpenAnswerPanel() { state = MessengerState.PickAnswer; waitForInput = true; choicePanel.gameObject.SetActive(true); choicePanel.UpdateChoices(currentDialog.choices); }
private IEnumerator MaxWritingCoroutine(string text) { state = MessengerState.MaxWriting; yield return(new WaitForSeconds(delayBetweenReplies / 2)); conversationPanel.DisplayIsWriting(true); yield return(new WaitForSeconds(text.Length * delayPerLetter)); conversationPanel.DisplayIsWriting(false); //yield return new WaitForSeconds(delayBetweenReplies / 2); conversationPanel.WriteMax(text); audioSource.PlayOneShot(sfx_notification); Next(); }
private IEnumerator MoWritingCoroutine(string text) { state = MessengerState.MoWriting; textInputPlaceholder.enabled = false; bool wait = true; textInput.Display(text, false, () => wait = false); yield return(new WaitWhile(() => wait)); yield return(new WaitForSeconds(delayBetweenReplies)); //yield return new WaitForSeconds(delayBetweenReplies + text.Length * delayPerLetter); conversationPanel.WriteMo(text); audioSource.PlayOneShot(sfx_send); textInput.SetTxt(""); textInputPlaceholder.enabled = true; Next(); }
public MessengerBuddy(int buddyUserId, string buddyUsername, string buddyClothing, string buddyMotto, int buddyLastOnline, MessengerState buddyMessengerState, bool buddyHideInRoom) { _buddyUserId = buddyUserId; }