Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 public void AddFriendRequest()
 {
     computer.AddFriendRequest(author, text);
 }