Beispiel #1
0
        private void doAtt(lHurt lHurtD)
        {
            bool flag = lHurtD.Count == 0;

            if (!flag)
            {
                float time = Time.time;
                this.curTick = 0;
                List <HurtData> l = lHurtD.l;
                for (int i = 0; i < l.Count; i++)
                {
                    HurtData hurtData = l[i];
                    bool     flag2    = time - hurtData.timer > 2f;
                    if (flag2)
                    {
                        bool flag3 = hurtData.play(lHurtD.maxComboNum);
                        bool flag4 = flag3;
                        if (flag4)
                        {
                            lHurtD.l.Remove(hurtData);
                            i--;
                        }
                    }
                }
            }
        }
        private void doAtt(lHurt lHurtD)
        {
            if (lHurtD.Count == 0)
            {
                return;
            }
            float t = Time.time;

            curTick = 0;
            List <HurtData> list = lHurtD.l;

            for (int i = 0; i < list.Count; i++)
            {
                HurtData d = list[i];
                if (t - d.timer > 2.0f)
                {
                    bool needdel = d.play(lHurtD.maxComboNum);
                    if (needdel)
                    {
                        lHurtD.l.Remove(d);
                        i--;
                    }
                }
            }
        }
Beispiel #3
0
        public void onAttackHanle(BaseRole go, int skillid)
        {
            bool flag = !this.dHurt.ContainsKey(go);

            if (!flag)
            {
                lHurt lHurt = this.dHurt[go];
                bool  flag2 = lHurt.Count == 0;
                if (!flag2)
                {
                    List <HurtData> l = lHurt.l;
                    for (int i = 0; i < l.Count; i++)
                    {
                        HurtData hurtData = l[i];
                        bool     flag3    = hurtData.play(lHurt.maxComboNum);
                        bool     flag4    = flag3;
                        if (flag4)
                        {
                            i--;
                            l.Remove(hurtData);
                        }
                    }
                }
            }
        }
        public void onAttackHanle(BaseRole go, int skillid)
        {
            BaseRole temp = go;

            if (!dHurt.ContainsKey(temp))
            {
                return;
            }
            lHurt lHurtD = dHurt[temp];

            if (lHurtD.Count == 0)
            {
                return;
            }
            List <HurtData> list = lHurtD.l;

            for (int i = 0; i < list.Count; i++)
            {
                HurtData d       = list[i];
                bool     needdel = d.play(lHurtD.maxComboNum);
                if (needdel)
                {
                    i--;
                    list.Remove(d);
                }
            }
            //if (lHurtD.Count == 0)
            //    lHurtD.maxComboNum = 0;

            //if (lHurtD.maxComboNum > 0)
            //    lHurtD.maxComboNum--;
        }