Explorar o código

修复机器人ai没有执行的问题

tanghai %!s(int64=3) %!d(string=hai) anos
pai
achega
0ca63d2328
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Robot/Hotfix/Robot/Console/CreateRobotConsoleHandler.cs

+ 1 - 0
Robot/Hotfix/Robot/Console/CreateRobotConsoleHandler.cs

@@ -42,6 +42,7 @@ namespace ET
                             Scene robotScene = Game.Scene.Get(robotSceneConfig.Id);
                             RobotManagerComponent robotManagerComponent = robotScene.GetComponent<RobotManagerComponent>();
                             Scene robot = await robotManagerComponent.NewRobot(Game.Options.Process * 10000 + i);
+                            robot.AddComponent<AIComponent, int>(1);
                             Log.Console($"create robot {robot.Zone}");
                             await TimerComponent.Instance.WaitAsync(2000);
                         }