public IPsdkExternalConfiguration GetExternalConfiguration() { if (!isPsdkValid()) { return(null); } if (_externalConfiguration != null) { return(_externalConfiguration); } _externalConfiguration = GettingServiceByReflection <IPsdkExternalConfiguration> ("PsdkExternalConfiguration"); if (_externalConfiguration != null) { return(_externalConfiguration); } if (!_silent) { Debug.Log("Please install PsdkExternalConfiguration !"); } return(null); }
public bool SetupExternalConfiguration() { registerInternalService(_externalConfiguration = GetExternalConfiguration()); if (_externalConfiguration != null) { return(_externalConfiguration.Setup()); } return(false); }
public PsdkExternalConfiguration(IPsdkServiceManager sm) { switch (Application.platform) { case RuntimePlatform.IPhonePlayer: _impl = new IphonePsdkExternalConfiguration(); break; #if UNITY_ANDROID case RuntimePlatform.Android: _impl = new AndroidPsdkExternalConfiguration(sm.GetImplementation()); break; #endif case RuntimePlatform.WindowsEditor: case RuntimePlatform.OSXEditor: _impl = new UnityPsdkExternalConfiguration(); break; default: throw new System.Exception("Platform not supported for External Configuration."); } }