示例#1
0
 public void BossHurt(GameEntity entity)
 {
     if (entity.hasBossData)
     {
         DotweenManager.GetInstance().PlayFlash(entity, 10, 2);
     }
 }
示例#2
0
 //////////////
 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);
     }
 }
示例#3
0
 private void PlayerBulletDie(GameEntity entity)
 {
     if (entity.isHeroBulletFlag)
     {
         //玩家子弹死亡
         DotweenManager.GetInstance().PlayRotatingNarrow(entity).onComplete = () =>
         {
             EntityManager.GetInstance().DestroyEntity(entity);
         };
     }
 }