protected virtual void HitPlayer() { //敵がプレイヤーにダメージを与える if (PB_player) { /* プレイヤーに当たった時の処理*/ PB_player.Damaged(2); } }