/// <param name="attack">攻撃</param> public AttackInfo(Attack attack) { Position = attack.ModelInfo.Position; BlockPosition = attack.BlockPosition; Speed = attack.Speed; OwnerInfo = attack.OwnerInfo; }
/// <summary> /// 攻撃を削除する /// </summary> /// <param name="attack">攻撃</param> public void Remove(Attack attack) { attacks.Remove(attack); }
/// <summary> /// 攻撃する /// </summary> private void Attack() { if (IsDead) { return; } Action = PlayerAction.Attack; NewAttack = new Attack(this); prepareForAttackTimer.Reset(); attackTimer.Start(); }
/// <summary> /// 攻撃を追加する /// </summary> /// <param name="attack">攻撃</param> public void Add(Attack attack) { attacks.Add(attack); }