角色控制和房间进入推送
This commit is contained in:
@@ -11,7 +11,7 @@ public class MapUnitSystemDestroySystem : DestroySystem<MapUnit>
|
||||
{
|
||||
self.MapId = 0;
|
||||
self.Position = float3.zero;
|
||||
self.Rotation = float4.zero;
|
||||
self.Rotation = float3.zero;
|
||||
self.GateRouteId = 0L;
|
||||
}
|
||||
}
|
||||
@@ -40,4 +40,25 @@ public static class MapUnitSystem
|
||||
|
||||
return ErrorCode.Successful;
|
||||
}
|
||||
|
||||
|
||||
public static MapUnitInfo ToMapUnitInfo(this MapUnit self)
|
||||
{
|
||||
var ret = new MapUnitInfo()
|
||||
{
|
||||
Id = self.Id,
|
||||
Position = Vector3Info.Create(self.Scene),
|
||||
Rotation = Vector3Info.Create(self.Scene),
|
||||
};
|
||||
|
||||
ret.Position.x = self.Position.x;
|
||||
ret.Position.y = self.Position.y;
|
||||
ret.Position.z = self.Position.z;
|
||||
|
||||
ret.Rotation.x = self.Rotation.x;
|
||||
ret.Rotation.y = self.Rotation.y;
|
||||
ret.Rotation.z = self.Rotation.z;
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user