示例#1
0
        public static BgLocationService GetService()
        {
            BgLocationService service = null;

                        #if UNITY_ANDROID
            service = new AndroidLocationService();
                        #elif UNITY_IOS
            service = new IodLocationService();
                        #else
            service = new Stub();
                        #endif

            return(service);
        }
示例#2
0
 void Awake()
 {
     _locationService = LocationServiceFactory.GetService();
 }