| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | 
							- using FairyGUI;
 
- using UI.Common;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class ViewGlobal
 
-     {
 
-         private static UI_ComHolder comHolder;
 
-         private static GameObject _gameObj;
 
-         private static GoWrapper _wrapper;
 
-         public static void CreatClickEffect()
 
-         {
 
-             if (comHolder == null)
 
-             {
 
-                 comHolder = UI_ComHolder.Create();
 
-                 comHolder.target.touchable = false;
 
-                 ViewManager.AddChildToFloatLayer(comHolder.target);
 
-                 comHolder.target.SetPosition(-100, -100, 0);
 
-                 string resPath = ResPathUtil.GetViewEffectPath("ui_dj", "ui_dj");
 
-                 SceneController.AddObjectToView(_gameObj, _wrapper, comHolder.m_holder, resPath, out _gameObj, out _wrapper);
 
-                 GRoot.inst.onTouchBegin.Add(SetClickPos);
 
-             }
 
-         }
 
-         private static void SetClickPos()
 
-         {
 
-             Vector2 pos = GRoot.inst.GlobalToLocal(Stage.inst.touchPosition);
 
-             comHolder.m_holder.visible = false;
 
-             comHolder.m_holder.visible = true;
 
-             comHolder.target.SetPosition(pos.x, pos.y, 0);
 
-         }
 
-         private static int index = 0;
 
-         public static void AddShowGMViewEventListener()
 
-         {
 
-             if (LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL)
 
-             {
 
-                 GRoot.inst.onTouchBegin.Add(OnTouchBegin);
 
-             }
 
-         }
 
-         private static void OnTouchBegin(EventContext context)
 
-         {
 
-             if (context.inputEvent.button == 1 || Stage.inst.touchCount == 2)
 
-             {
 
-                 if (index == 0)
 
-                 {
 
-                     Timers.inst.Add(1, 1, OnTimeComplete);
 
-                 }
 
-                 index++;
 
-                 if (index == 2)
 
-                 {
 
-                     ShowGmView();
 
-                 }
 
-             }
 
-         }
 
-         private static void OnTimeComplete(object param)
 
-         {
 
-             index = 0;
 
-         }
 
-         public static void ShowGmView()
 
-         {
 
-             if (ViewManager.isViewOpen(typeof(PhotographView).FullName)) return;
 
-             ViewManager.Show(ViewName.GM_PANEL_VIEW);
 
-         }
 
-     }
 
- }
 
 
  |