コード例 #1
0
 NUnityStorage INuggetaPlatform.getStorage()
 {
     if(unityStorage == null) {
         unityStorage = new NUnityStorageDefault();
     }
     return unityStorage;
 }
コード例 #2
0
        public NuggetaPlatform()
        {
            #if UNITY_EDITOR
            unityNet = new NUnityNetEditor();

            #elif UNITY_ANDROID
            unityNet = new NUnityNetAndroid();
            unityStorage = new NUnityStorageAndroid();
            unityWebView = new NUnityWebViewAndroid();

            #elif UNITY_IPHONE
            unityNet = new NUnityNetIOS();
            unityStorage = new NUnityStorageIOS();
            unityWebView = new NUnityWebViewIOS();

            #elif UNITY_WEBPLAYER
            unityNet = new NUnityNetWP();
            unityWebView = new NUnityWebViewWP();
            #endif
        }