예제 #1
0
 public static void SetViewConfiguration(NoticeViewConfiguration configuration)
 {
     Log.Debug("[Notice] SetViewConfiguration");
     if (configuration.UseRotation)
     {
         UIViewRotation.Instance.SetRotation(INTRO, true);
         UIViewRotation.Instance.SetRotation(INGAME, true);
     }
     else
     {
         UIViewRotation.Instance.SetRotation(INTRO, false);
         UIViewRotation.Instance.SetRotation(INGAME, false);
     }
     NoticeImpl.SetViewConfiguration(configuration.ToJsonString());
 }
예제 #2
0
        public NoticeAndroid()
        {
            noticeViewClass = new AndroidJavaClass("com.netmarble.unity.NMGNoticeUnity");
            version         = noticeViewClass.GetStatic <string>("VERSION");
            intro           = noticeViewClass.CallStatic <int>("nmg_notice_get_intro");
            ingame          = noticeViewClass.CallStatic <int>("nmg_notice_get_ingame");

            NoticeViewConfiguration configuration = new NoticeViewConfiguration();

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