Преглед изворни кода

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

tanghai пре 3 година
родитељ
комит
0ca63d2328
1 измењених фајлова са 1 додато и 0 уклоњено
  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);
                         }