void loadPlayerCompletedEvent(GPGPlayerInfo playerInfo, string error) { Debug.Log("loadPlayerCompletedEvent: "); if (playerInfo != null) { Prime31.Utils.logObject(playerInfo); } else { Debug.Log(error); } }
// Gets the logged in players details public static GPGPlayerInfo getLocalPlayerInfo() { var player = new GPGPlayerInfo(); if (Application.platform != RuntimePlatform.Android) { return(player); } var json = _plugin.Call <string>("getLocalPlayerInfo"); return(Json.decode <GPGPlayerInfo>(json)); }
// Gets the logged in players details public static GPGPlayerInfo getLocalPlayerInfo() { var player = new GPGPlayerInfo(); if( Application.platform != RuntimePlatform.Android ) return player; var json = _plugin.Call<string>( "getLocalPlayerInfo" ); return Json.decode<GPGPlayerInfo>( json ); }
void loadPlayerCompletedEvent( GPGPlayerInfo playerInfo, string error ) { Debug.Log( "loadPlayerCompletedEvent: " ); if( playerInfo != null ) Prime31.Utils.logObject( playerInfo ); else Debug.Log( error ); }