Ejemplo n.º 1
0
        public override void OnInteract(collid.CollitionInfo info)
        {
            if (typeof(EntityPlayer).IsAssignableFrom(info.CollitionObjectType))
            {
                return;
            }

            this.Life--;
        }
Ejemplo n.º 2
0
 public abstract void OnInteract(collid.CollitionInfo info);
Ejemplo n.º 3
0
        public override void OnInteract(collid.CollitionInfo info)
        {
            if (typeof(Item).IsAssignableFrom(info.CollitionObjectType))
                return;

            if (!this.isDeathTime)
            {
                this.Life--;

                this.mainShotType = MainShotType.Normal;
                this.subShotType = SubShotType.None;
                this.power = 0;
                this.bomCount = 1;

                this.isDeathTime = true;

                DX.PlaySoundMem(SoundLoader.GetInstance().Sounds["death.mp3"], DX.DX_PLAYTYPE_BACK);

                this.position.PosX = SSGame.GetInstance().GetBattleWindowSize().Width / 2;
                this.position.PosY = SSGame.GetInstance().GetBattleWindowSize().Height;

            }
        }
Ejemplo n.º 4
0
 public override void OnInteract(collid.CollitionInfo info)
 {
     //ぶつかったら消える
     this.Life = 0;
 }
Ejemplo n.º 5
0
 public override void OnInteract(collid.CollitionInfo info)
 {
     if (typeof(EntityPlayer).IsAssignableFrom(info.CollitionObjectType))
     {
         this.AddItemEffect(((EntityPlayer)info.CollitionInteractor));
         this.Life = 0;
     }
 }
Ejemplo n.º 6
0
 public override void OnInteract(collid.CollitionInfo info)
 {
     //なにもしない(貫通)
 }
Ejemplo n.º 7
0
        public override void OnInteract(collid.CollitionInfo info)
        {
            if (typeof(EntityPlayer).IsAssignableFrom(info.CollitionObjectType))
            {
                //とりあえずこっちは何もしない(体当たりで死んだらアレなので)
                return;
            }

            //ライフを1減らす
            this.Life--;

            if (!this.IsLiving())
            {
                if (this.KilledByPlayer != null)
                {
                    this.KilledByPlayer(this.score);
                }

            }
        }