public static void Create()
 {
     if (QCARRuntimeUtilities.IsQCAREnabled())
         sWrapper = new QCARNativeWrapper();
     else
         sWrapper = new QCARNullWrapper();
 }
示例#2
0
 public static void Create()
 {
     if (QCARRuntimeUtilities.IsQCAREnabled())
     {
         sWrapper = new QCARNativeWrapper();
     }
     else
     {
         sWrapper = new QCARNullWrapper();
     }
 }
示例#3
0
 public static void Create()
 {
     if (QCARRuntimeUtilities.IsQCAREnabled())
     {
         if (Application.platform == RuntimePlatform.IPhonePlayer)
         {
             sWrapper = new QCARNativeIosWrapper();
         }
         else
         {
             sWrapper = new QCARNativeWrapper();
         }
     }
     else
     {
         sWrapper = new QCARNullWrapper();
     }
 }
 /// <summary>
 /// Forces the singleton to a specific interface implementation
 /// Mainly used for Unit Tests.
 /// </summary>
 public static void SetImplementation(IQCARWrapper implementation)
 {
     sWrapper = implementation;
 }
示例#5
0
 /// <summary>
 /// Forces the singleton to a specific interface implementation
 /// Mainly used for Unit Tests.
 /// </summary>
 public static void SetImplementation(IQCARWrapper implementation)
 {
     sWrapper = implementation;
 }