Beispiel #1
0
 public void hide()
 {
     a3_task_auto.instance.stopAuto = false;
     if (curItem != null)
     {
         curItem.hide();
         curItem = null;
     }
 }
Beispiel #2
0
        public NewbieModel()
        {
            Transform  transform  = GameObject.Find("newbieLayer").transform;
            GameObject original   = U3DAPI.U3DResLoad <GameObject>("prefab/newbiebg");
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(original);

            this.bgitem = new BgItem(gameObject.transform, transform);
            gameObject  = UnityEngine.Object.Instantiate <GameObject>(original);
        }
Beispiel #3
0
        public void hide()
        {
            a3_task_auto.instance.stopAuto = false;
            bool flag = this.curItem != null;

            if (flag)
            {
                this.curItem.hide();
                this.curItem = null;
            }
        }
Beispiel #4
0
        public void show(Vector3 pos, Vector2 size, string text = "", bool force = false, string clickItemName = "", Action clickMaskHandle = null, int cameraType = 0, bool autoClose = true)
        {
            a3_task_auto.instance.stopAuto = true;
            curItem = bgitem;

            if (a1_gamejoy.inst_joystick != null && SelfRole._inst != null)
            {
                a1_gamejoy.inst_joystick.OnDragOut(null);
            }

            curItem.show(pos, size, text, force, clickItemName, clickMaskHandle, cameraType, autoClose);
        }
Beispiel #5
0
        public NewbieModel()
        {
            Transform transCon = GameObject.Find("newbieLayer").transform;


            //GameObject temp = U3DAPI.U3DResLoad<GameObject>("prefab/newbiebg");
            GameObject temp = GAMEAPI.ABLayer_LoadNow_GameObject("uilayer_newbiebg");
            GameObject goBg = GameObject.Instantiate(temp) as GameObject;

            bgitem = new BgItem(goBg.transform, transCon);
            goBg   = GameObject.Instantiate(temp) as GameObject;
        }
Beispiel #6
0
        public void show(Vector3 pos, Vector2 size, string text = "", bool force = false, string clickItemName = "", Action clickMaskHandle = null, int cameraType = 0, bool autoClose = true)
        {
            a3_task_auto.instance.stopAuto = true;
            this.curItem = this.bgitem;
            bool flag = joystick.instance != null && SelfRole._inst != null;

            if (flag)
            {
                joystick.instance.OnDragOut(null);
            }
            this.curItem.show(pos, size, text, force, clickItemName, clickMaskHandle, cameraType, autoClose);
        }