Esempio n. 1
0
 public static void SetViewConfiguration(CouponViewConfiguration configuration)
 {
     Log.Debug("[Coupon] SetViewConfiguration");
     if (configuration.UseRotation)
     {
         UIViewRotation.Instance.SetRotation(COUPON, true);
     }
     else
     {
         UIViewRotation.Instance.SetRotation(COUPON, false);
     }
     CouponImpl.SetViewConfiguration(configuration.ToJsonString());
 }
Esempio n. 2
0
        public CouponAndroid()
        {
            couponClass = new AndroidJavaClass("com.netmarble.unity.NMGCouponUnity");
            version     = couponClass.GetStatic <string>("VERSION");
            coupon      = couponClass.CallStatic <int>("nmg_coupon_get_location");

            CouponViewConfiguration configuration = new CouponViewConfiguration();

            if (configuration.UseRotation)
            {
                UIViewRotation.Instance.SetRotation(coupon, true);
            }
            else
            {
                UIViewRotation.Instance.SetRotation(coupon, false);
            }
        }