Esempio n. 1
0
        /// <summary>
        /// ボスへのヒット判定
        /// </summary>
        /// <param name='owner'>
        /// Owner.
        /// </param>
        public override void Hit(GameEntity owner)
        {
            base.Hit (owner);

            //衝突がプレイヤーのものだった場合
            if(owner is PlayerBulletDefault)
            {
                this.RemoveChild(owner.Sprite,true);
                Game.Instance.RemoveQueue.Add((BulletEntity)owner);

                Game.Instance.HpBar.EnemyHp -= 0.0005f;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// プレイヤーへのヒット判定
        /// </summary>
        /// <param name='owner'>
        /// Owner.
        /// </param>
        public override void Hit(GameEntity owner)
        {
            base.Hit (owner);

            //ボスの弾が当たった場合
            if(owner is BossBulletGu || owner is BossBulletKi)
            {
                this.RemoveChild(owner.Sprite,true);
                Game.Instance.RemoveQueue.Add((BulletEntity)owner);

                Game.Instance.HpBar.PlayerHp -= 0.05f;
            }
        }
Esempio n. 3
0
 public virtual void Hit(GameEntity owner)
 {
 }
Esempio n. 4
0
 public void Add(CollisionEntityType type, GameEntity owner, GetCenterDelegate center, GetRadiusDelegate radius)
 {
     CollisionEntry entry = new CollisionEntry () { type = type, owner = owner, center = center, radius = radius };
     List<CollisionEntry> entries = typed_entries [(int)type];
     entries.Add (entry);
 }