This commit is contained in:
CortexCore
2024-04-19 21:43:30 +08:00
parent e12a6e5a46
commit 3cc6491973
46 changed files with 6792 additions and 23887 deletions

View File

@@ -57,7 +57,7 @@ namespace BITFALL.Combat
Debug.DrawLine(command.Position, command.Position + command.Forward * command.Range, Color.red, 1f);
var colliders = Physics.OverlapSphere(command.Position, command.Range,detectLayer);
var _damaged = new Dictionary<ulong, IUnityEntity>();
var _damaged = new Dictionary<int, IUnityEntity>();
var hits = colliders
.Where(x => x.GetComponent<IDamagable>() is not null)
//.Where(x => MathV.IsForward(command.Position, command.Forward, x.transform.position))