게임 이어하기

Namespace: Matrix.Component
Assembly: MatrixGames (in MatrixGames.dll)

void ContinuePlay( 
Callback<ContinuePlayResponse> cb 
)
This language is not supported or no code example is available.

Parameters

cb

Type: Callback<ContinuePlayResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

    cb.response: Response Data ref. ContinuePlayResponse

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

게임 이어하기 기능

게임 이어하기 기능 및 이에 따른 item이나 user info의 변동이 있는 게임의 경우에만 사용.

	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onUserContinuePlayTest(Matrix.CallbackInfo<Matrix.Domain.User.ContinuePlayResponse> info)
  {
      Debug.Log("onUserContinuePlayTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          string message = info.response.StructToJson();
 
          Debug.Log(message);
      }
  }
 
  static void UserContinuePlayTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[UserContinuePlayTest]");
 
      API.User.ContinuePlay(onContinuePlay);
  }
 					

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0