コード例 #1
0
 public Answer(DateSimAnswer answer)
 {
     answerText     = answer.answerText;
     trueAnswerText = answer.trueAnswerText;
     goodAnswer     = answer.goodAnswer;
     textPath       = answer.textPath;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void SetRing(DateSimText dateSimText)
 {
     _actualDateSimText = dateSimText;
     StartCoroutine(Co_SetRing());
 }
コード例 #4
0
        IEnumerator Co_ReceiveMessage(DateSimText dateSimText)
        {
            yield return(new WaitForSeconds(1f));

            ReceiveMessage(dateSimText);
        }