| | |
| | | eag.TakeDamage(damage, fpos, null); |
| | | if (!eag.opponentAgent) |
| | | { |
| | | if (GameUI.instanceExists) |
| | | GameUI.instance.generateBloodText(fpos, damage); |
| | | else if (EndlessGameUI.instanceExists) |
| | | EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | // if (GameUI.instanceExists) |
| | | // GameUI.instance.generateBloodText(fpos, damage); |
| | | // else if (EndlessGameUI.instanceExists) |
| | | // EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | } |
| | | |
| | | if (!isDeath && eag.isDead) |
| | |
| | | eag.TakeDamage(damage, fpos, null); |
| | | if (!eag.opponentAgent) |
| | | { |
| | | if (GameUI.instanceExists) |
| | | GameUI.instance.generateBloodText(fpos, damage); |
| | | else if (EndlessGameUI.instanceExists) |
| | | EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | // if (GameUI.instanceExists) |
| | | // GameUI.instance.generateBloodText(fpos, damage); |
| | | // else if (EndlessGameUI.instanceExists) |
| | | // EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | } |
| | | |
| | | eag.PlayFireSkillHit(); |
| | |
| | | eag.TakeDamage(damage, fpos, null); |
| | | if (!eag.opponentAgent) |
| | | { |
| | | if (GameUI.instanceExists) |
| | | GameUI.instance.generateBloodText(fpos, damage); |
| | | else if (EndlessGameUI.instanceExists) |
| | | EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | // if (GameUI.instanceExists) |
| | | // GameUI.instance.generateBloodText(fpos, damage); |
| | | // else if (EndlessGameUI.instanceExists) |
| | | // EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | } |
| | | |
| | | eag.PlayFireSkillHit(); |
| | |
| | | Agent eag = listAg[ti]; |
| | | if (eag == ag) continue; |
| | | |
| | | Vector3 fpos = eag.transform.position; |
| | | tpos.y = 0; |
| | | fpos.y = 0; |
| | | if (Vector3.Distance(tpos, fpos) > 12) continue; |
| | | |
| | | if (eag.AgentType == SpawnAgentType.BubbleBomb) |
| | | { |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessBossSkillBubbleBombGetHit, (eag as BubbleBombAgent).Id); |
| | | } |
| | | else |
| | | { |
| | | Vector3 fpos = eag.transform.position; |
| | | tpos.y = 0; |
| | | fpos.y = 0; |
| | | if (Vector3.Distance(tpos, fpos) < 12) |
| | | eag.TakeDamage(damage, fpos, null); |
| | | if (!eag.opponentAgent) |
| | | { |
| | | eag.TakeDamage(damage, fpos, null); |
| | | if (!eag.opponentAgent) |
| | | { |
| | | if (GameUI.instanceExists) |
| | | GameUI.instance.generateBloodText(fpos, damage); |
| | | else if (EndlessGameUI.instanceExists) |
| | | EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | } |
| | | if (eag.isDead) |
| | | ++deathCount; |
| | | // if (GameUI.instanceExists) |
| | | // GameUI.instance.generateBloodText(fpos, damage); |
| | | // else if (EndlessGameUI.instanceExists) |
| | | // EndlessGameUI.instance.generateBloodText(fpos, damage); |
| | | } |
| | | if (eag.isDead) |
| | | ++deathCount; |
| | | } |
| | | } |
| | | |
| | |
| | | Damager damager = ag.GetComponent<Damager>(); |
| | | ag.TakeDamage(chainAttackHurt, ag.position, alignment); |
| | | // 处理飘字效果: |
| | | if ((ag.liveID == tid) && (!ag.opponentAgent)) |
| | | { |
| | | if (GameUI.instanceExists) |
| | | GameUI.instance.generateBloodText(ag.position, chainAttackHurt); |
| | | else if (EndlessGameUI.instanceExists) |
| | | EndlessGameUI.instance.generateBloodText(ag.position, chainAttackHurt); |
| | | } |
| | | // if ((ag.liveID == tid) && (!ag.opponentAgent)) |
| | | // { |
| | | // if (GameUI.instanceExists) |
| | | // GameUI.instance.generateBloodText(ag.position, chainAttackHurt); |
| | | // else if (EndlessGameUI.instanceExists) |
| | | // EndlessGameUI.instance.generateBloodText(ag.position, chainAttackHurt); |
| | | // } |
| | | } |
| | | listBlood.Clear(); |
| | | |