씬 정리

This commit is contained in:
김도환
2026-05-08 22:45:22 +09:00
parent d4cb3c5f39
commit f1213cd247
26 changed files with 120 additions and 255 deletions

View File

@@ -0,0 +1,14 @@
using Unicorn.Game.Hitbox;
using UnityEngine;
namespace Unicorn.Game
{
public class Enemy : LivingEntity
{
protected override void OnDamaged(DamageInfo info)
{
var dir = transform.position - info.hitPoint;
Rb.linearVelocity = dir.normalized * info.knockbackForce;
}
}
}