Esempio n. 1
0
 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;
         }
     }
 }
Esempio n. 2
0
 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();
         }
     }
 }
Esempio n. 3
0
 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();
         }
     }
 }