Skip to content

Commit

Permalink
删除Room多余的ChildOf标签
Browse files Browse the repository at this point in the history
  • Loading branch information
egametang committed Nov 30, 2023
1 parent 86322c8 commit ccd405d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ public override async ETTask Handle(FiberInit fiberInit)
root.AddComponent<CoroutineLockComponent>();
root.AddComponent<ProcessInnerSender>();
root.AddComponent<MessageSender>();
Room room = root.AddChild<Room>();
root.AddComponent<LocationProxyComponent>();
root.AddComponent<MessageLocationSenderComponent>();

room.Name = "Server";

await ETTask.CompletedTask;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class RoomManager2Room_InitHandler: MessageHandler<Scene, RoomManager2Roo
protected override async ETTask Run(Scene root, RoomManager2Room_Init request, Room2RoomManager_Init response)
{
Room room = root.AddComponent<Room>();

room.Name = "Server";
room.AddComponent<RoomServerComponent, List<long>>(request.PlayerIds);

room.LSWorld = new LSWorld(SceneType.LockStepServer);
Expand Down
1 change: 0 additions & 1 deletion Unity/Assets/Scripts/Codes/Model/Share/LockStep/Room.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace ET
{
[ChildOf]
[ComponentOf]
public class Room: Entity, IScene, IAwake, IUpdate
{
Expand Down

0 comments on commit ccd405d

Please sign in to comment.