示例#1
0
    protected override void onDie(AttackerAttr killerAttr, ImpactDamageType impactDamageType)
    {
        base.onDie(killerAttr, impactDamageType);
        if (mBloodNode != null)
        {
            mBloodNode.Hide();
        }
        int xx = GetHP();

        Scene.OnCropsDie();
    }
示例#2
0
    protected override void onDie(AttackerAttr killerAttr, ImpactDamageType impactDamageType)
    {
        if (mRes.bossHpUnit > 0)
        {
            BossBloodUIManager.Instance.ChangeHp(mRes.name, mRes.headicon, GetLevel(), 0, GetMaxHP(),
                                                 mRes.bossHpUnit, IsFury());

            GameScene scene = mScene as GameScene;
            if (scene != null)
            {
                scene.BossDeadPos = GetPosition();
            }
        }

        if (mBloodNode != null)
        {
            mBloodNode.Hide();
        }

        base.onDie(killerAttr, impactDamageType);
    }
示例#3
0
 public void ReleaseBloodUI(BloodNode node)
 {
     node.Hide();
     mCacheQueue.Enqueue(node);
 }