|
|
@@ -4,7 +4,8 @@ using Unity.Mathematics;
|
|
|
namespace ET.Server
|
|
|
{
|
|
|
[EntitySystemOf(typeof(AOIEntity))]
|
|
|
- public static partial class AOIEntitySystem2
|
|
|
+ [FriendOf(typeof(Cell))]
|
|
|
+ public static partial class AOIEntitySystem
|
|
|
{
|
|
|
[EntitySystem]
|
|
|
private static void Awake(this AOIEntity self, int distance, float3 pos)
|
|
|
@@ -25,12 +26,7 @@ namespace ET.Server
|
|
|
self.SubEnterCells.Clear();
|
|
|
self.SubLeaveCells.Clear();
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- [FriendOf(typeof(AOIEntity))]
|
|
|
- [FriendOf(typeof(Cell))]
|
|
|
- public static partial class AOIEntitySystem
|
|
|
- {
|
|
|
+
|
|
|
// 获取在自己视野中的对象
|
|
|
public static Dictionary<long, EntityRef<AOIEntity>> GetSeeUnits(this AOIEntity self)
|
|
|
{
|