Exemplo n.º 1
0
 protected override void Update()
 {
     base.Update();
     if (!Application.isEditor)
     {
         JPushPlugin.addListener();
     }
 }
Exemplo n.º 2
0
 protected override void Update()
 {
     base.Update();
     JPushPlugin.addListener();
     if (VideoPlayerManager.instance.isRotation)
     {
         if (Input.deviceOrientation == DeviceOrientation.Portrait &&
             Screen.orientation != ScreenOrientation.Portrait && !VideoPlayerManager.instance.lockPortrait)
         {
             VideoPlayerManager.instance.lockLandscape = false;
             EventBus.publish(EventBusConstant.changeOrientation, new List <object> {
                 ScreenOrientation.Portrait
             });
         }
         else if (Input.deviceOrientation == DeviceOrientation.LandscapeLeft)
         {
             VideoPlayerManager.instance.lockPortrait = false;
             if (Screen.orientation != ScreenOrientation.LandscapeLeft &&
                 !VideoPlayerManager.instance.lockLandscape)
             {
                 EventBus.publish(EventBusConstant.changeOrientation,
                                  new List <object> {
                     ScreenOrientation.LandscapeLeft
                 });
             }
         }
         else if (Input.deviceOrientation == DeviceOrientation.LandscapeRight)
         {
             VideoPlayerManager.instance.lockPortrait = false;
             if (Screen.orientation != ScreenOrientation.LandscapeRight)
             {
                 EventBus.publish(EventBusConstant.changeOrientation,
                                  new List <object> {
                     ScreenOrientation.LandscapeRight
                 });
             }
         }
     }
 }
Exemplo n.º 3
0
 protected override void Update()
 {
     base.Update();
     JPushPlugin.addListener();
 }