示例#1
0
        private void onError(GameEvent e)
        {
            debug.Log("连接错误");
            bool flag = login.instance != null && LGOutGame.instance != null;

            if (flag)
            {
                Action handle = delegate
                {
                    this.tick_num = 0;
                    this.tick     = new TickItem(new Action <float>(this.onUpdate));
                    TickMgr.instance.addTick(this.tick);
                };
                login.instance.msg.show(true, "服务器连接错误,请重新连接", handle);
            }
        }
示例#2
0
 void onUpdates(float s)
 {
     times += s;
     if (times >= 1)
     {
         i--;
         if (i == 0)
         {
             i = 0;
             bgImage.gameObject.SetActive(false);
             txtChat.gameObject.SetActive(false);
             TickMgr.instance.removeTick(showtime);
             showtime = null;
         }
         times = 0;
     }
 }
        public void refresShowPostion(int time)
        {
            itemEnemyListPrefab.txtPos   = (itemEnemyListPrefab.txtPos = this.root.FindChild("Toggle/containts/txtpos").GetComponent <Text>());
            itemEnemyListPrefab.txtTimer = this.root.FindChild("Toggle/containts/txtpos/txtTimer").GetComponent <Text>();
            bool flag = time <= 0;

            if (flag)
            {
                itemEnemyListPrefab.txtPos.text   = "未知";
                itemEnemyListPrefab.txtTimer.text = "";
            }
            else
            {
                this.postionTime = new TickItem(new Action <float>(this.onUpdateEnmeyPostion));
                TickMgr.instance.addTick(this.postionTime);
                this.i = time;
            }
        }
示例#4
0
        public void runSkill_2010()
        {
            bool flag = this.m_SFX2 == null;

            if (flag)
            {
                this.m_SFX2 = UnityEngine.Object.Instantiate <GameObject>(ohterP2Warrior.WARRIOR_SFX2);
                this.m_SFX2.transform.SetParent(this.m_curModel, false);
                this.m_SFX2.SetActive(false);
            }
            bool flag2 = this.process_2010 == null;

            if (flag2)
            {
                this.process_2010 = new TickItem(new Action <float>(this.onUpdate_2010));
                TickMgr.instance.addTick(this.process_2010);
            }
            this.m_cur2010_time = 0f;
        }
示例#5
0
        public void runSkill_3008()
        {
            bool flag = this.m_SFX1 == null;

            if (flag)
            {
                this.m_SFX1 = UnityEngine.Object.Instantiate <GameObject>(ohterP3Mage.P3MAGE_SFX1);
                this.m_SFX1.transform.SetParent(this.m_curModel, false);
                this.m_SFX1.SetActive(false);
            }
            bool flag2 = this.process_3008 == null;

            if (flag2)
            {
                this.process_3008 = new TickItem(new Action <float>(this.onUpdate_3008));
                TickMgr.instance.addTick(this.process_3008);
            }
            this.m_cur3008_time = 0f;
        }
示例#6
0
        void onUpdate_3008(float s)
        {
            //跨地图时m_curModel==null
            if (m_curModel == null)
            {
                TickMgr.instance.removeTick(process_3008);
                return;
            }


            m_cur3008_time += s;
            if (m_cur3008_time > 0.6f)
            {
                m_SFX1.SetActive(true);
                m_cur3008_time = 0;
                TickMgr.instance.removeTick(process_3008);
                process_3008 = null;
            }
        }
 void onShield(BaseRole Role)
 {
     if (ShieldFirst)
     {
         GameObject shield_fx = GAMEAPI.ABFight_LoadPrefab("FX_comFX_fx_player_common_FX_com_dun_ilde");
         if (shield_fx != null && shield_fx_clon == null)
         {
             shield_fx_clon = GameObject.Instantiate(shield_fx) as GameObject;
             shield_fx_clon.transform.SetParent(Role.m_curModel, false);
             if (process == null)
             {
                 process = new TickItem(updata_Wite);
                 TickMgr.instance.addTick(process);
                 waitTime = 0;
             }
             ShieldFirst = false;
         }
     }
 }
示例#8
0
        private void onUpdates(float s)
        {
            this.times += s;
            bool flag = this.times >= 1f;

            if (flag)
            {
                this.i--;
                bool flag2 = this.i == 0;
                if (flag2)
                {
                    this.i = 0;
                    this.bgImage.gameObject.SetActive(false);
                    this.txtChat.gameObject.SetActive(false);
                    TickMgr.instance.removeTick(this.showtime);
                    this.showtime = null;
                }
                this.times = 0f;
            }
        }
示例#9
0
        private void onUpdate_3008(float s)
        {
            bool flag = this.m_curModel == null;

            if (flag)
            {
                TickMgr.instance.removeTick(this.process_3008);
            }
            else
            {
                this.m_cur3008_time += s;
                bool flag2 = this.m_cur3008_time > 0.6f;
                if (flag2)
                {
                    this.m_SFX1.SetActive(true);
                    this.m_cur3008_time = 0f;
                    TickMgr.instance.removeTick(this.process_3008);
                    this.process_3008 = null;
                }
            }
        }
        void onUpdates(float s)
        {
            times += s;
            if (times >= 1)
            {
                i--;
                if (isself)
                {
                    PlayerModel.getInstance().hitBack = ( uint )i;    //服务器发的时间戳,要不停刷新玩家自己的反击buff时间
                }
                //debug.Log(i+"");
                if (i == 0)
                {
                    hitback_state.SetActive(false);
                    i = 0;

                    TickMgr.instance.removeTick(hitbacktime);
                    hitbacktime = null;
                }
                times = 0;
            }
        }
示例#11
0
        void onUpdateCd(float s)
        {
            //if (sumcd <= 0)
            //{
            //    A3_SummonModel.getInstance().canFindsum = true;
            //    TickMgr.instance.removeTick(process_cd);
            //    process_cd = null;
            //}
            //sumcd = sumcd - s;

            //if (a3_herohead.instance)
            //{
            //    a3_herohead.instance.refresh_sumCd(sumcd);
            //}
            foreach (int type in sum_cds.Keys)
            {
                sum_reduce_cds.Add(type);
                if (sum_cds[type] <= 0)
                {
                    sum_remove_cds.Add(type);
                }
            }
            foreach (int type in sum_reduce_cds)
            {
                sum_cds[type] = sum_cds[type] - s;
            }
            foreach (int type in sum_remove_cds)
            {
                sum_cds.Remove(type);
            }
            sum_remove_cds.Clear();
            sum_reduce_cds.Clear();
            if (sum_cds.Count == 0)
            {
                TickMgr.instance.removeTick(process_cd);
                process_cd = null;
            }
        }
示例#12
0
        private void onShield(BaseRole Role)
        {
            bool shieldFirst = this.ShieldFirst;

            if (shieldFirst)
            {
                GameObject gameObject = Resources.Load <GameObject>("FX/comFX/fx_player_common/FX_com_dun_ilde");
                bool       flag       = gameObject != null && this.shield_fx_clon == null;
                if (flag)
                {
                    this.shield_fx_clon = UnityEngine.Object.Instantiate <GameObject>(gameObject);
                    this.shield_fx_clon.transform.SetParent(Role.m_curModel, false);
                    bool flag2 = this.process == null;
                    if (flag2)
                    {
                        this.process = new TickItem(new Action <float>(this.updata_Wite));
                        TickMgr.instance.addTick(this.process);
                        this.waitTime = 0f;
                    }
                    this.ShieldFirst = false;
                }
            }
        }
示例#13
0
 void onUpdates(float s)
 {
     times += s;
     if (times >= 1)
     {
         i--;
         if (i == 0)
         {
             i = 0;
             if (isDes)
             {
                 return;
             }
             txtName.gameObject.SetActive(false);
             TickMgr.instance.removeTick(showtime);
             GameObject.Destroy(this.gameObject);
             isDes = true;
             DropItemUIMgr.getInstance().removeDropItem(this);
             showtime = null;
         }
         times = 0;
     }
 }
示例#14
0
        void onUpdate_2010(float s)
        {
            //跨地图时m_curModel==null
            if (m_curModel == null)
            {
                TickMgr.instance.removeTick(process_2010);
                return;
            }


            m_cur2010_time += s;
            if (m_cur2010_time > 1.0f)
            {
                m_SFX2.SetActive(true);
            }
            if (m_cur2010_time > m_skill2010_time)
            {
                GameObject.Destroy(m_SFX2);
                m_cur2010_time = 0;
                TickMgr.instance.removeTick(process_2010);
                process_2010 = null;
                m_SFX2       = null;
            }
        }
示例#15
0
            public itemTeamApplyPanel(Transform trans, ItemTeamData itd)
            {
                this.m_go = UnityEngine.Object.Instantiate <GameObject>(trans.gameObject);
                this.m_go.SetActive(true);
                this.m_go.transform.SetParent(trans.parent);
                this.m_go.transform.localScale    = Vector3.one;
                this.m_go.transform.localPosition = Vector3.zero;
                this.m_go.transform.SetAsFirstSibling();
                this.txtInfor   = this.m_go.transform.FindChild("body/Text").GetComponent <Text>();
                this.txtCD      = this.m_go.transform.FindChild("body/txtCD").GetComponent <Text>();
                this.txtCD.text = string.Format(this.strCD, this.cdTime);
                this.showTime   = new TickItem(new Action <float>(this.onUpdates));
                TickMgr.instance.addTick(this.showTime);
                BaseButton baseButton  = new BaseButton(this.m_go.transform.FindChild("title/btnClose"), 1, 1);
                BaseButton baseButton2 = new BaseButton(this.m_go.transform.FindChild("bottom/btnOk"), 1, 1);
                BaseButton baseButton3 = new BaseButton(this.m_go.transform.FindChild("bottom/btnCancle"), 1, 1);

                baseButton3.onClick = new Action <GameObject>(this.onBtnCancleClick);
                baseButton.onClick  = new Action <GameObject>(this.onBtnCloseClick);
                baseButton2.onClick = new Action <GameObject>(this.onBtnOKClick);
                this.m_itd          = itd;
                string name         = itd.name;
                string professional = ModelBase <A3_TeamModel> .getInstance().getProfessional(itd.carr);

                uint zhuan = itd.zhuan;
                uint lvl   = itd.lvl;

                this.txtInfor.text = string.Format(this.txtInfor.text, new object[]
                {
                    itd.name,
                    professional,
                    zhuan,
                    lvl
                });
                trans.transform.SetAsLastSibling();
            }
示例#16
0
        public void refresShowChat(int time, bool ismyself = false)
        {
            debug.Log("时间是多少:::::::::" + time);
            if (time <= 0)
            {
                bgImage.gameObject.SetActive(false);
                return;
            }
            else

            {
                if (bgImage.gameObject.transform.parent.gameObject.GetComponent <RectTransform>().localPosition.x <= -568)
                {
                    bgImage.gameObject.SetActive(false);
                }
                else
                {
                    bgImage.gameObject.SetActive(true);
                }
            }
            //bgImage.gameObject.SetActive(true);
            if (bgImage != null)
            {
                showtime = new TickItem(onUpdates);
                TickMgr.instance.addTick(showtime);
            }
            i = time;
            if (ismyself)
            {
                isself = true;
            }
            else
            {
                isself = false;
            }
        }
示例#17
0
        private void onUpdates(float s)
        {
            this.times += s;
            bool flag = this.times >= 1f;

            if (flag)
            {
                this.i--;
                bool flag2 = this.isself;
                if (flag2)
                {
                    ModelBase <PlayerModel> .getInstance().hitBack = (uint)this.i;
                }
                bool flag3 = this.i == 0;
                if (flag3)
                {
                    this.hitback_state.SetActive(false);
                    this.i = 0;
                    TickMgr.instance.removeTick(this.hitbacktime);
                    this.hitbacktime = null;
                }
                this.times = 0f;
            }
        }
示例#18
0
        public override void init()
        {
            _instance = this;
            ditu      = getComponentByPath <Text>("shijieditu");
            // PlayerModel.SendPosition();
            m_goWorldmap = getGameObjectByPath("worldmap");
            //vecBegin = m_goWorldmap.transform.position;
            //vecEnd = vecBegin;
            //vecEnd.y = 600f;
            //m_goWorldmap.transform.position = vecEnd;
            m_goMapcon = getGameObjectByPath("mapcon");

            btclose         = new BaseButton(getTransformByPath("btclose"));
            btclose.onClick = onClose;

            btGoCity         = new BaseButton(getTransformByPath("tabrole/gotomain"));
            btGoCity.onClick = onGotoCity;

            GameObject temp = getGameObjectByPath("tabrole/temp");

            temp.SetActive(false);
            tempH       = temp.GetComponent <RectTransform>().sizeDelta.y;
            npcList     = new ItemList(getTransformByPath("tabrole/npcmain"), 0, temp, onNpcListClick, onMonsterListClick, onWayListClick);
            monsterList = new ItemList(getTransformByPath("tabrole/monstermain"), 1, temp, onNpcListClick, onMonsterListClick, onWayListClick);
            wayList     = new ItemList(getTransformByPath("tabrole/waymain"), 2, temp, onNpcListClick, onMonsterListClick, onWayListClick);
            goTabrole   = getGameObjectByPath("tabrole");

            tick = new TickItem(onUpdate);

            tab = new TabControl();
            tab.onClickHanle = ontab;

            tab.create(getGameObjectByPath("tab"), gameObject, 0, 0);



            goP   = getGameObjectByPath("mapcon/p");
            goP1  = getGameObjectByPath("mapcon/icon");
            goP22 = transform.FindChild("worldmap/icon").gameObject;
            //BaseButton btnChangeLine = new BaseButton(getTransformByPath("tabrole/btnChangeLine"));
            //btnChangeLine.onClick = onBtnChangeLineClick;


            initWorldMap();



            if (m_goMapcon.activeInHierarchy && TeamProxy.getInstance().MyTeamData != null)
            {
                teampos();
            }
            //resfreshTeamPos();
            mapRotation = Quaternion.Euler(0f, 0f, 0f);


            getComponentByPath <Text>("tab/world/Text").text = ContMgr.getCont("worldmap_0");
            getComponentByPath <Text>("tab/map/Text").text   = ContMgr.getCont("worldmap_1");
            getComponentByPath <Text>("tabrole/monstermain/way/Text").text     = ContMgr.getCont("worldmap_2");
            getComponentByPath <Text>("tabrole/monstermain/monster/Text").text = ContMgr.getCont("worldmap_3");
            getComponentByPath <Text>("tabrole/npcmain/way/Text").text         = ContMgr.getCont("worldmap_2");
            getComponentByPath <Text>("tabrole/npcmain/monster/Text").text     = ContMgr.getCont("worldmap_3");
            getComponentByPath <Text>("tabrole/waymain/way/Text").text         = ContMgr.getCont("worldmap_2");
            getComponentByPath <Text>("tabrole/waymain/monster/Text").text     = ContMgr.getCont("worldmap_3");
            getComponentByPath <Text>("tabrole/gotomain/Text").text            = ContMgr.getCont("worldmap_4");
            getComponentByPath <Text>("tabrole/btnChangeLine/Text").text       = ContMgr.getCont("worldmap_5");
            getComponentByPath <Text>("worldmap/title/Text").text = ContMgr.getCont("worldmap_6");
            getComponentByPath <Text>("worldmap/name").text       = ContMgr.getCont("worldmap_7");
            getComponentByPath <Text>("shijieditu").text          = ContMgr.getCont("worldmap_7");
            transform.SetAsLastSibling();
        }
示例#19
0
 public EffMgr()
 {
     this.tick = new TickItem(new Action <float>(this.onUpdate));
     TickMgr.instance.addTick(this.tick);
 }
示例#20
0
        public static void play1(string id, Vector3 pos, int num, bool criatk = false, int type = -1)
        {
            bool flag = FightText.offsetPos == null;

            if (flag)
            {
                FightText.offsetPos = new List <Vector3>();
                for (int i = 0; i < 20; i++)
                {
                    Vector3 item = new Vector3((float)ConfigUtil.getRandom(-30, 30), (float)ConfigUtil.getRandom(-30, 10), 0f);
                    FightText.offsetPos.Add(item);
                }
            }
            bool flag2 = FightText.instacne == null;

            if (flag2)
            {
                FightText.instacne = GameObject.Find("fightText").transform;
                FightText.process  = new TickItem(new Action <float>(FightText.onUpdate));
                TickMgr.instance.addTick(FightText.process);
                FightText.mousePointCon = GameObject.Find("mouseTouchAni").transform;
                InterfaceMgr.setUntouchable(FightText.mousePointCon.gameObject);
            }
            GameObject original   = Resources.Load(id) as GameObject;
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(original);
            bool       flag3      = type != -1;

            if (flag3)
            {
                Sprite sprite = Resources.Load("icon/rune_fight/" + type, typeof(Sprite)) as Sprite;
                bool   flag4  = sprite != null;
                if (flag4)
                {
                    gameObject.transform.FindChild("Text/Image").GetComponent <Image>().sprite = sprite;
                }
            }
            FightTextTempSC fightTextTempSC = gameObject.GetComponent <FightTextTempSC>();
            bool            flag5           = fightTextTempSC == null;

            if (flag5)
            {
                fightTextTempSC = gameObject.AddComponent <FightTextTempSC>();
            }
            bool flag6 = id == FightText.MOUSE_POINT || id == FightText.MISS_TEXT;

            if (flag6)
            {
                gameObject.transform.SetParent(FightText.instacne, false);
                fightTextTempSC.init(FightTextTempSC.TYPE_ANI);
            }
            else
            {
                gameObject.transform.SetParent(FightText.instacne, false);
                fightTextTempSC.init(FightTextTempSC.TYPE_TEXT);
            }
            fightTextTempSC.play(pos + ((id == FightText.MOUSE_POINT) ? Vector3.zero : FightText.offsetPos[FightText.posIdx]), num, criatk);
            FightText.posIdx++;
            bool flag7 = FightText.posIdx >= 20;

            if (flag7)
            {
                FightText.posIdx = 0;
            }
        }
示例#21
0
        static public void play(String id, Vector3 pos, int num, bool criatk = false, int type = -1, string skill = null, INameObj avatar = null)
        {
            //战斗飘字高度在头顶位置的基础上提高屏幕的10分之1
            pos.y = pos.y + Screen.height / 10;
            //return;

            //if (id == HERO_TEXT)
            //{
            //    debug.Log("aa");
            //}

            //if (offsetPos == null)
            //{
            //    offsetPos = new List<Vector3>();
            //    Vector3 v;
            //    for (int i = 0; i < 20; i++)
            //    {
            //        v = new Vector3(ConfigUtil.getRandom(-30, 30), ConfigUtil.getRandom(-30, 10), 0);
            //        offsetPos.Add(v);
            //    }
            //}


            if (instacne == null)
            {
                instacne = GameObject.Find("fightText").transform;
                process  = new TickItem(onUpdate);
                TickMgr.instance.addTick(process);

                mousePointCon = GameObject.Find("mouseTouchAni").transform;
                InterfaceMgr.setUntouchable(mousePointCon.gameObject);
            }


            if (!normalFightTextPool.ContainsKey(id + type))
            {
                normalFightTextPool[id + type] = new List <FightTextTempSC>();
            }

            List <FightTextTempSC> l = normalFightTextPool[id + type];
            GameObject             root;
            FightTextTempSC        sc;

            if (l.Count == 0)
            {
                GameObject commonUIPrefab = GAMEAPI.ABUI_LoadPrefab(id);

                root = GameObject.Instantiate(commonUIPrefab) as GameObject;
                if (type != -1)
                {
                    Sprite icon_Image = GAMEAPI.ABUI_LoadSprite("icon_rune_fight_" + type);
                    if (icon_Image != null && U3DAPI.DEF_SPRITE != icon_Image)
                    {
                        root.transform.FindChild("Text/Image").GetComponent <Image>().sprite = icon_Image;
                    }
                    else
                    {
                        GameObject.Destroy(root);
                        return;
                    }
                }
                sc = root.GetComponent <FightTextTempSC>();
                if (sc == null)
                {
                    sc = root.AddComponent <FightTextTempSC>();
                }

                if (id == MOUSE_POINT || id == MISS_TEXT)
                {
                    // root.transform.SetParent(mousePointCon, false);
                    root.transform.SetParent(instacne, false);
                    sc.init(FightTextTempSC.TYPE_ANI);
                }
                else
                {
                    root.transform.SetParent(instacne, false);
                    sc.init(FightTextTempSC.TYPE_TEXT);
                }
                sc.pool        = l;
                sc.playingPool = playingPool;
            }
            else
            {
                sc = l[0];
                sc.setActive(true);
                l.RemoveAt(0);
            }
            sc.timer = Time.time;
            playingPool.Add(sc);
            //Vec3 v = imgnum.changePot(m_char.pos + new Vec3(0, 1.8f, 0));
            //imgnum.x = v.x;
            //imgnum.y = 720 - v.y;
            //imgnum.num = num + "";
            //  Camera.main.WorldToScreenPoint(v3)
            if (skill != null)
            {//飘技能字
                sc.transform.FindChild("Text/skill").GetComponent <Text>().text = skill;
            }
            Vector2 offsetByHit = Vector2.one;

            if (CurrentCauseRole != null)
            {
                Vector3 originPos;
                try {
                    originPos = GRMap.GAME_CAM_CAMERA.WorldToScreenPoint(CurrentCauseRole.m_curModel.position);
                }
                catch (Exception) { // --此异常通常由分辨率突然变更引起
                    return;
                }
                offsetByHit = new Vector2(
                    x: (originPos.x - pos.x) > 0 ? 1 : -1,
                    y: (originPos.y - pos.y) > 0 ? 1 : -1
                    );
            }
            sc.ani.SetFloat("HorizontalValue", offsetByHit.x);
            sc.ani.SetFloat("VerticalValue", offsetByHit.y);
            if (avatar != null)
            {
                sc._avatar = avatar;
            }
            sc.play(pos, num, criatk);

            //sc.play(pos + (id == MOUSE_POINT ? Vector3.zero : offsetPos[posIdx]), num, criatk);

            posIdx++;
            if (posIdx >= 20)
            {
                posIdx = 0;
            }
        }
示例#22
0
        public static void play(string id, Vector3 pos, int num, bool criatk = false, int type = -1)
        {
            bool flag = FightText.instacne == null;

            if (flag)
            {
                FightText.instacne = GameObject.Find("fightText").transform;
                FightText.process  = new TickItem(new Action <float>(FightText.onUpdate));
                TickMgr.instance.addTick(FightText.process);
                FightText.mousePointCon = GameObject.Find("mouseTouchAni").transform;
                InterfaceMgr.setUntouchable(FightText.mousePointCon.gameObject);
            }
            bool flag2 = !FightText.normalFightTextPool.ContainsKey(id + type);

            if (flag2)
            {
                FightText.normalFightTextPool[id + type] = new List <FightTextTempSC>();
            }
            List <FightTextTempSC> list = FightText.normalFightTextPool[id + type];
            bool            flag3       = list.Count == 0;
            FightTextTempSC fightTextTempSC;

            if (flag3)
            {
                GameObject original   = Resources.Load(id) as GameObject;
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(original);
                bool       flag4      = type != -1;
                if (flag4)
                {
                    Sprite sprite = Resources.Load("icon/rune_fight/" + type, typeof(Sprite)) as Sprite;
                    bool   flag5  = sprite != null;
                    if (!flag5)
                    {
                        UnityEngine.Object.Destroy(gameObject);
                        return;
                    }
                    gameObject.transform.FindChild("Text/Image").GetComponent <Image>().sprite = sprite;
                }
                fightTextTempSC = gameObject.GetComponent <FightTextTempSC>();
                bool flag6 = fightTextTempSC == null;
                if (flag6)
                {
                    fightTextTempSC = gameObject.AddComponent <FightTextTempSC>();
                }
                bool flag7 = id == FightText.MOUSE_POINT || id == FightText.MISS_TEXT;
                if (flag7)
                {
                    gameObject.transform.SetParent(FightText.instacne, false);
                    fightTextTempSC.init(FightTextTempSC.TYPE_ANI);
                }
                else
                {
                    gameObject.transform.SetParent(FightText.instacne, false);
                    fightTextTempSC.init(FightTextTempSC.TYPE_TEXT);
                }
                fightTextTempSC.pool        = list;
                fightTextTempSC.playingPool = FightText.playingPool;
            }
            else
            {
                fightTextTempSC = list[0];
                fightTextTempSC.setActive(true);
                list.RemoveAt(0);
            }
            fightTextTempSC.timer = Time.time;
            FightText.playingPool.Add(fightTextTempSC);
            Vector2 one   = Vector2.one;
            bool    flag8 = FightText.CurrentCauseRole != null;

            if (flag8)
            {
                Vector3 vector;
                try
                {
                    vector = GRMap.GAME_CAM_CAMERA.WorldToScreenPoint(FightText.CurrentCauseRole.m_curModel.position);
                }
                catch (Exception)
                {
                    return;
                }
                one = new Vector2((float)((vector.x - pos.x > 0f) ? 1 : -1), (float)((vector.y - pos.y > 0f) ? 1 : -1));
            }
            fightTextTempSC.ani.SetFloat("HorizontalValue", one.x);
            fightTextTempSC.ani.SetFloat("VerticalValue", one.y);
            fightTextTempSC.play(pos, num, criatk);
            FightText.posIdx++;
            bool flag9 = FightText.posIdx >= 20;

            if (flag9)
            {
                FightText.posIdx = 0;
            }
        }
示例#23
0
 public void removeTick(TickItem tick)
 {
     tick.isTicking = false;
 }
示例#24
0
 public EffMgr()
 {
     tick = new TickItem(onUpdate);
     TickMgr.instance.addTick(tick);
 }
示例#25
0
 public MediaClient()
 {
     MediaClient.instance = this;
     this.tick            = new TickItem(new Action <float>(this.onTick));
 }
示例#26
0
 public AttackPointMgr()
 {
     this.dHurt   = new Dictionary <BaseRole, lHurt>();
     this.process = new TickItem(new Action <float>(this.onUpdate));
     TickMgr.instance.addTick(this.process);
 }