private static void Setup(RuntimePlatform platform) { if (impl == null) { switch(platform) { case RuntimePlatform.Android: impl = new KalimbaPdImplAndroid(); break; case RuntimePlatform.IPhonePlayer: impl = new KalimbaPdImplIOs(); break; case RuntimePlatform.WindowsPlayer: case RuntimePlatform.LinuxPlayer: case RuntimePlatform.OSXPlayer: impl = new KalimbaPdImplNative(); break; default: impl = new KalimbaPdImplNetwork(); break; } } }
private static void setup() { if (impl == null) { if (Application.platform == RuntimePlatform.Android) { impl = new KalimbaPdImplAndroid(); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { impl = new KalimbaPdImplIOs(); } else { impl = new KalimbaPdImplNetwork(); } } }