Home>

Assets/Scripts/Client.cs (53,36): error CS0029: Cannot implicitly convert typestring'tochar'What should I do?

Applicable source code
using UnityEngine;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine.UI;
using UnityEngine.Networking;

[RequireComponent (typeof (MMD4M_LipSync))]
public class Client: MonoBehaviour
{
    private MMD4M_LipSync lipSync_;
    public AudioClip [] audioClips;
    [SerializeField] BubbleController bubbleController;
    string URL = "http://127.0.0.1:8000/";
    string [] resultList;
    void Start ()
    {
        lipSync_ = GetComponent<MMD4M_LipSync>();
    }
    public void GetWords (string word)
    {
        StartCoroutine (Post (word));
    }

    private IEnumerator Post (string word)
    {
        WWWForm form = new WWWForm ();
        form.AddField ("word", word);
        UnityWebRequest request = UnityWebRequest.Post (URL, form);
        // send request
        yield return request.Send ();
        if (request.isNetworkError) {
            Debug.Log ("Error:" + request.error);
        } else {
            if (request.responseCode == 200) {
                // Get data from Python Server
                string w = request.downloadHandler.text;
                Debug.Log (w);
                Debug.Log ("Success: D");
                char [] separator = new char [] {""};
                string [] w1 = w.Split (separator);
                List<string>list = new List<string>();
                list.AddRange (w1);
                string talk = list [0];
                lipSync_.Talk (talk);
                string emo = list [1];
                Debug.Log (emo);
            } else {
                Debug.Log ("Failed;(:" + request.responseCode);
            }
        }
    }
}