#pragma warning disable 0618 /// <summary> /// Request the local player player information /// <param name="userData"> /// ANDROID ONLY /// An optional code that will be returned in the response. Used to associate a function call to its response. /// A value of 0 is not recommended because 0 is the value returned when userData is not specified. /// </param> /// </summary> public static void RequestLocalPlayer(int userData = 0) { #if UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) // GameCircle only functions on device. #elif UNITY_ANDROID JavaObject.Call("requestLocalPlayer", userData); #else AGSRequestPlayerResponse response = AGSRequestPlayerResponse.GetPlatformNotSupportedResponse(userData); if (PlayerFailedEvent != null) { PlayerFailedEvent(response.error); } if (RequestLocalPlayerCompleted != null) { RequestLocalPlayerCompleted(response); } #endif }