public void BossHurt(GameEntity entity) { if (entity.hasBossData) { DotweenManager.GetInstance().PlayFlash(entity, 10, 2); } }
////////////// public void MobHurt(GameEntity entity) { if (entity.hasMobData) { //只保留1个 string sUID = string.Format("flash_%s", entity.creationIndex); DotweenManager.GetInstance().Kill(sUID); DotweenManager.GetInstance().PlayFlash(entity, 8, 0.5f).SetId(sUID); } }
private void PlayerBulletDie(GameEntity entity) { if (entity.isHeroBulletFlag) { //玩家子弹死亡 DotweenManager.GetInstance().PlayRotatingNarrow(entity).onComplete = () => { EntityManager.GetInstance().DestroyEntity(entity); }; } }