(client) feat:实现掉落物,UI显示,维度
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user