mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace ET
|
||||
{
|
||||
/// <summary>
|
||||
/// 同一块地图可能有多种寻路数据,玩家可以随时切换,怪物也可能跟玩家的寻路不一样,寻路组件应该挂在Unit上
|
||||
/// </summary>
|
||||
[ComponentOf(typeof(Unit))]
|
||||
public class PathfindingComponent: Entity, IAwake<string>, IDestroy
|
||||
{
|
||||
public const int FindRandomNavPosMaxRadius = 15000; // 随机找寻路点的最大半径
|
||||
|
||||
public float[] extents = {15, 10, 15};
|
||||
|
||||
public string Name;
|
||||
|
||||
public IntPtr navMesh;
|
||||
|
||||
public float[] StartPos = new float[3];
|
||||
|
||||
public float[] EndPos = new float[3];
|
||||
|
||||
public float[] Result = new float[Recast.MAX_POLYS * 3];
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0e22ef73640ac8944baf71f1960cc67b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user