攻撃できるようになりました
This commit is contained in:
13
Assets/Scripts/IDamageble.cs
Normal file
13
Assets/Scripts/IDamageble.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user