IEnumerator ExecuteAfterTime(float time, string name, string state, string globalKey, string other) { yield return(new WaitForSeconds(time)); Sequence accept = null; Sequence deny = null; if (jsonObj) { if (other != "" && other.Contains(",")) { ; } { string[] keys = other.Split(','); try { if (keys.Length > 0 && keys[0] != "") { accept = SequenceGenerator.createSimplyDialog(keys[0], jsonObj); } if (keys.Length > 1 && keys[1] != "") { deny = SequenceGenerator.createSimplyDialog(keys[1], jsonObj); } } catch (Exception e) { Debug.LogError("Error in " + jsonFile.name + " file. The error is: " + e.Message); } } } computer.AddFriendRequest(name, state, globalKey, accept, deny); }
public void AddFriendRequest() { computer.AddFriendRequest(author, text); }