(client) feat:实现掉落物,UI显示,维度

This commit is contained in:
m0_75251201
2025-08-27 13:56:22 +08:00
parent f04c89046b
commit 0c99e2beee
46 changed files with 6150 additions and 1809 deletions

View File

@ -1,5 +1,7 @@
using System.Collections.Generic;
using Base;
using Data;
using Managers;
using Prefab;
using Unity.VisualScripting;
using UnityEngine;
@ -74,5 +76,22 @@ namespace AI
}
}
public class AttackJob : JobBase
{
private Entity.Entity attackTarget;
protected override void UpdateJob()
{
entity.TryMove();
}
override public void StartJob(Entity.Entity target)
{
base.StartJob(target);
attackTarget =
EntityManage.Instance
.FindNearestEntityByRelation(target.currentDimensionId, target.entityPrefab, Relation.Hostile)
?.entity;
}
}
}