
プレイヤー数値
通貨やエネルギーをサーバーで管理します。
SDK と REST
Unity、Godot、Unreal と統合するか、REST インターフェースを使えます。
プロジェクトのダッシュボード
プロジェクトで各機能を設定し、現在のデータを管理できます。
クイック統合
プレイヤー数値
動画は近日公開
サーバーが管理する通貨、カウンター、エネルギー。プロジェクトごとに残高、オファー、検証付き変更を定義します。
using PM.horizOn.Cloud.Manager;
using UnityEngine;
var userId = UserManager.Instance.CurrentUser.UserId;
var current = await PlayerValuesManager.Instance.GetState(userId);
if (!current.IsSuccess) { Debug.LogWarning(current.ErrorCode); return; }
foreach (var value in current.State.values) Debug.Log(value.key + "=" + value.balance);
// This minimal first call reads authoritative balances, never a local reward delta.
// For purchases and original retry, import PlayerValuesExample and its
// PendingPlayerValuesPurchase helper from the official SDK samples.
// Persist the complete original user/offer/operationId before one send.
// An uncertain or expired original must never become a fresh purchase ID.これらの例では、Unity SDK(C#)とREST APIを使っています。GodotとUnrealでも、それぞれのSDKで同じ呼び出しができます: クイックスタートを参照
