示例#1
0
 /// <param name="attack">攻撃</param>
 public AttackInfo(Attack attack)
 {
     Position = attack.ModelInfo.Position;
     BlockPosition = attack.BlockPosition;
     Speed = attack.Speed;
     OwnerInfo = attack.OwnerInfo;
 }
示例#2
0
 /// <summary>
 /// 攻撃を削除する
 /// </summary>
 /// <param name="attack">攻撃</param>
 public void Remove(Attack attack)
 {
     attacks.Remove(attack);
 }
示例#3
0
        /// <summary>
        /// 攻撃する
        /// </summary>
        private void Attack()
        {
            if (IsDead)
            {
                return;
            }

            Action = PlayerAction.Attack;
            NewAttack = new Attack(this);

            prepareForAttackTimer.Reset();
            attackTimer.Start();
        }
示例#4
0
 /// <summary>
 /// 攻撃を追加する
 /// </summary>
 /// <param name="attack">攻撃</param>
 public void Add(Attack attack)
 {
     attacks.Add(attack);
 }