Files
VRProject/Assets/_Scripts/IDamageble.cs
oogushiyuuga 4d3fee6ca5 いろいろやってみた
Playerが蜘蛛にめり込まないようにしたい
2026-07-01 16:23:04 +09:00

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);
}