/// <summary> /// 攻撃制御クラスを生成する /// </summary> /// <param name="type">生成したい攻撃の種類</param> void CreateAttack(Type type) { switch (type) { case Type.Single: currentAttack = new AttackSingle(user); break; case Type.Double: currentAttack = new AttackDouble(user); break; } currentAttack.Excute(user.transform, null); currentAttack.onFinished = this.OnAttackFinished; }