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,17 @@
|
||||
namespace ET
|
||||
{
|
||||
public static partial class LSUnitFactory
|
||||
{
|
||||
public static LSUnit Init(LSWorld lsWorld, LockStepUnitInfo unitInfo)
|
||||
{
|
||||
LSUnitComponent lsUnitComponent = lsWorld.GetComponent<LSUnitComponent>();
|
||||
LSUnit lsUnit = lsUnitComponent.AddChildWithId<LSUnit>(unitInfo.PlayerId);
|
||||
|
||||
lsUnit.Position = unitInfo.Position;
|
||||
lsUnit.Rotation = unitInfo.Rotation;
|
||||
|
||||
lsUnit.AddComponent<LSInputComponent>();
|
||||
return lsUnit;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user