Exemplo n.º 1
0
    // ----------------------------------------------------
    // ルームに入る
    // ----------------------------------------------------
    public void OnClick()
    {
        ApiClient.Instance.ResponseCreatePlayerEntry = ResponseCreatePlayerEntry;
        var param = new RequestCreatePlayerEntry();

        param.room_id = room_id;
        ApiClient.Instance.RequestCreatePlayerEntry(param);
    }
Exemplo n.º 2
0
    public void PlayerEntry()
    {
        RequestCreatePlayerEntry param = new RequestCreatePlayerEntry();

        param.room_id = this.room_id;

        ApiClient.Instance.ResponseCreatePlayerEntry = ResponseCreatePlayerEntry;
        ApiClient.Instance.RequestCreatePlayerEntry(param);
    }
Exemplo n.º 3
0
        /// <summary>
        ///     RequestCreatePlayerEntry
        ///     /api/rooms/:room_id/player_entriesへPOSTでリクエストを行なう
        /// </summary>
        public void RequestCreatePlayerEntry(RequestCreatePlayerEntry param)
        {
            var url = ipAddr + string.Format("/api/rooms/{0}/player_entries", param.room_id);

            requester.Post(url, param, ResponseCreatePlayerEntry);
        }