NUnityStorage INuggetaPlatform.getStorage() { if(unityStorage == null) { unityStorage = new NUnityStorageDefault(); } return unityStorage; }
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 }