コード例 #1
0
 protected override void collisionWithWaterEffect(WaterEffectEntity waterEffect)
 {
     --blood;
     if (blood <= 0)
     {
         base.collisionWithWaterEffect(waterEffect);
         Global.Counter_Scores += 100;
     }
 }
コード例 #2
0
ファイル: ItemEntity.cs プロジェクト: doanhtdpl/boom-game
 private void collisionWithWaterEffect(WaterEffectEntity wef)
 {
     this.isDead = true;
     Global.Counter_Scores -= 20;
 }
コード例 #3
0
ファイル: BomberEntity.cs プロジェクト: doanhtdpl/boom-game
        private void collisionWithWaterEffect(WaterEffectEntity waterEffect)
        {
            if (!((this.RendererObj as BomberRenderer).Stage is WrapBombStage))
            {
                (this.RendererObj as BomberRenderer).onStageChange(WrapBombStage.getInstance());

                // Play sound bomber die
                Global.PlaySoundEffect(Shared.Resources.Sound_Inside_Bomb);
            }
        }
コード例 #4
0
ファイル: ObstacleEntity.cs プロジェクト: doanhtdpl/boom-game
        private void collisionWithWaterEffect(WaterEffectEntity wef)
        {
            if (!this.isDead)
            {
                (LogicalObj as ObstacleLogical).TimeToDie = Shared.Constants.OBSTACLE_TIME_TO_DIE;

                // Play sound break obstacle
                Global.PlaySoundEffect(Shared.Resources.Sound_Obstacle_Break);
            }
        }
コード例 #5
0
ファイル: EnemyEntity.cs プロジェクト: doanhtdpl/boom-game
 protected virtual void collisionWithWaterEffect(WaterEffectEntity waterEffect)
 {
     this.isDead = true;
     Global.Counter_Scores += 100;
 }