コード例 #1
0
    public void Request(ServerAction action, JsonNode args = null, Action func = null)
    {
        GameManager.Instance.LockScreen();
        JsonClass jdata = new JsonClass();

        jdata["action"] = action.ToString();
        if (args != null)
        {
            jdata["args"] = args;
        }
        string str = jdata.ToJson();

        print(str);
        StartCoroutine(CallServer(str, func));
    }