void MoveAmmoOnCompelteITween()
    {
        if (IsDestroyAmmo)
        {
            return;
        }
        IsDestroyAmmo = true;

        if (NpcHealthList != null)
        {
            NpcHealthList.Clear();
            NpcHealthList = null;
        }

        if (PaiJiPaoTiShi != null)
        {
            Destroy(PaiJiPaoTiShi);
        }

        if (AmmoType != PlayerAmmoType.ChuanTouAmmo)
        {
            SpawnAmmoParticleObj();
        }

        NpcAmmoCtrl.RemoveItweenComponents(gameObject);
        NpcAmmoCtrl.RemoveItweenComponents(gameObject, 1);
        if (AmmoType == PlayerAmmoType.GenZongAmmo ||
            AmmoType == PlayerAmmoType.PaiJiPaoAmmo)
        {
            CheckPlayerAmmoOverlapSphereHit();
        }
        DaleyHiddenPlayerAmmo();
    }
Пример #2
0
    void MoveAmmoOnCompelteITween()
    {
        if (IsDestroyAmmo)
        {
            return;
        }
        IsDestroyAmmo = true;

        if (NpcHealthList != null)
        {
            NpcHealthList.Clear();
            NpcHealthList = null;
        }

        if (PaiJiPaoTiShi != null)
        {
            Destroy(PaiJiPaoTiShi);
        }

        NpcAmmoCtrl.RemoveItweenComponents(gameObject);
        NpcAmmoCtrl.RemoveItweenComponents(gameObject, 1);
        if (AmmoType == PlayerAmmoType.Null)
        {
        }
        else
        {
            if (IsHitNpcAmmo == false)
            {
                CheckPlayerAmmoOverlapSphereHit();
            }
            //else
            //{
            //    SSDebug.Log("PlayerAmmo have hit npc! ************ AmmoType ===== " + AmmoType);
            //}
        }

        if (AmmoType != PlayerAmmoType.ChuanTouAmmo)
        {
            //创建子弹粒子.
            SpawnAmmoParticleObj();
        }
        DaleyHiddenPlayerAmmo();
    }