// Use this for initialization
    void Start()
    {
        Debug.Log("Hey mon ami", this.gameObject);
        PlayerPrefs.SetString("user", _userName);
        PlayerPrefs.SetString("oauth", _oAuth);
        PlayerPrefs.Save();

        _irc = GetComponent <TwitchIRC>();
        _irc.Login(_userName, _oAuth);
    }
示例#2
0
 public void Submit()
 {
     if (irc == null)
     {
         Debug.LogError("No IRC client Found, make sure the \'TwitchPlays Client\' prefab is in the scene!");
     }
     else
     {
         irc.Login(user.text, oauth.text);
         StopCoroutine("reconnect");
         StartCoroutine("reconnect");
     }
 }