internal static void InitializeFactory() { PlayGamesHelperObject.CreateObject(); NearbyConnectionsManager.ReadServiceId(); NearbyConnectionsManagerBuilder nearbyConnectionsManagerBuilder = new NearbyConnectionsManagerBuilder(); nearbyConnectionsManagerBuilder.SetOnInitializationFinished(OnManagerInitialized); PlatformConfiguration configuration = new AndroidClient().CreatePlatformConfiguration(PlayGamesClientConfiguration.DefaultConfiguration); Debug.Log((object)"Building manager Now"); sManager = nearbyConnectionsManagerBuilder.Build(configuration); }
internal static void InitializeFactory() { PlayGamesHelperObject.CreateObject(); NearbyConnectionsManager.ReadServiceId(); NearbyConnectionsManagerBuilder connectionsManagerBuilder = new NearbyConnectionsManagerBuilder(); connectionsManagerBuilder.SetOnInitializationFinished(new Action <NearbyConnectionsStatus.InitializationStatus>(NativeNearbyConnectionClientFactory.OnManagerInitialized)); PlatformConfiguration platformConfiguration = new AndroidClient().CreatePlatformConfiguration(); Debug.Log((object)"Building manager Now"); NativeNearbyConnectionClientFactory.sManager = connectionsManagerBuilder.Build(platformConfiguration); }
internal static void InitializeFactory() { // initialize the callback thread processing PlayGamesHelperObject.CreateObject(); //Read the Service ID NearbyConnectionsManager.ReadServiceId(); NearbyConnectionsManagerBuilder sBuilder = new NearbyConnectionsManagerBuilder(); // The connection manager needs to be initialized before using it, so // wait for initialization. sBuilder.SetOnInitializationFinished(OnManagerInitialized); PlatformConfiguration cfg = NativeClient.CreatePlatformConfiguration(); Debug.Log("Building manager Now"); sManager = sBuilder.Build(cfg); }