Ejemplo n.º 1
0
 private void Start()
 {
     chatMoov = transform.GetComponent <ChatMooving>();
     if (chatMoov != null)
     {
         chatMoov.Next();
     }
     audioSouce = GetComponent <AudioSource>();
 }
Ejemplo n.º 2
0
    //Jhonのチャットを作る
    public IEnumerator MakeJhonChat(string text)
    {
        Tmp_Jhon_chat = Instantiate(JhonPre, transform.position, Quaternion.identity, originObj);
        Tmp_Jhon_chat.transform.localPosition = JhonPos;
        Text _text = Tmp_Jhon_chat.transform.Find("Jhon_text").GetComponent <Text>();

        _text.text = "";//初期化

        int messageCount = 0;

        while (text.Length > messageCount)
        {
            _text.text += text[messageCount];
            messageCount++;
            yield return(new WaitForSeconds(novelSpeed));
        }

        //next処理
        chatMoov.Next();
    }
Ejemplo n.º 3
0
 public void OnClick()
 {
     GameObject.Find("GameManager").GetComponent <GameManager>().AudioPlay(sound1);
     chatMoov.Next();
 }