public Answer(DateSimAnswer answer) { answerText = answer.answerText; trueAnswerText = answer.trueAnswerText; goodAnswer = answer.goodAnswer; textPath = answer.textPath; }
public void ReceiveMessage(DateSimText dateSimText) { GameObject sendedMessage = Instantiate(_sendedMessagePrefab, transform.position, Quaternion.identity, transform); sendedMessage.GetComponentInChildren <TextMeshProUGUI>().text = dateSimText.textMessage; _answerPanel.SetAnswers(dateSimText.answers); _gameManager.AddText(dateSimText.textMessage, MessageText.MessageType.receivedMessage); }
public void SetRing(DateSimText dateSimText) { _actualDateSimText = dateSimText; StartCoroutine(Co_SetRing()); }
IEnumerator Co_ReceiveMessage(DateSimText dateSimText) { yield return(new WaitForSeconds(1f)); ReceiveMessage(dateSimText); }