攻撃できるようになりました

This commit is contained in:
KawakamiKento
2026-05-25 17:04:25 +09:00
parent 4f79131ae7
commit 17c8750e47
9 changed files with 440 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
using UnityEngine;
public struct DamageInfo
{
public float amount; //ダメージ量
public Vector3 hitPosition; //殴られた位置
public Vector3 punchDirection; //パンチが飛んできた方向(ノックバック用)
public bool isPoseBonus; //構えから攻撃かどうか
}
public interface IDamageble
{
void TakeDamage(DamageInfo damageInfo);
}