型 変数名 内容 Hashtable playerParameters 更新・設定・同期するプレイヤーカスタムパラメータのハッシュテーブルを設定します。
型 内容 void -
// 自身のプレイヤーカスタムパラメータとして、「HitPoint」(体力)を、値「100」として設定します。 Hashtable customParams = new Hashtable(); customParams["HitPoint"] = 100; MonobitEngine.MonobitNetwork.SetPlayerCustomParameters( customParams );
// 同一ルーム内に所属している全プレイヤーの HitPoint を表示します。 if( MonobitEngine.MonobitNetwork,isRoom ) { foreach( MonobitEngine.MonobitPlayer player in MonobitEngine.MonobitNetwork.playerList ) { Debug.Log( "PlayerName : " + player.name + ", HitPoint : " + player.customParameters["HitPoint"] ); } }