|
@@ -13,7 +13,7 @@ namespace ETHotfix
|
|
|
{
|
|
{
|
|
|
Unit unit = ComponentFactory.Create<Unit>();
|
|
Unit unit = ComponentFactory.Create<Unit>();
|
|
|
|
|
|
|
|
- await unit.AddComponent<ActorComponent, string>(ActorType.Unit).AddLocation();
|
|
|
|
|
|
|
+ await unit.AddComponent<ActorComponent>().AddLocation();
|
|
|
unit.AddComponent<UnitGateComponent, long>(message.GateSessionId);
|
|
unit.AddComponent<UnitGateComponent, long>(message.GateSessionId);
|
|
|
Game.Scene.GetComponent<UnitComponent>().Add(unit);
|
|
Game.Scene.GetComponent<UnitComponent>().Add(unit);
|
|
|
response.UnitId = unit.Id;
|
|
response.UnitId = unit.Id;
|