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