Moved robots to separate folders and a dedicated robotlist in the UI
This commit is contained in:
@@ -5,6 +5,7 @@ using Godot;
|
||||
public partial class UIHandler : Control
|
||||
{
|
||||
[Export] CodingWindow codingWindow;
|
||||
[Export] RobotList robotList;
|
||||
[Export] PanelContainer robotNaming;
|
||||
[Export] Information information;
|
||||
[Export] Camera3D mainCam;
|
||||
@@ -16,12 +17,10 @@ public partial class UIHandler : Control
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
codingWindow.OnRobotClicked += (robot) =>
|
||||
robotList.OnRobotJumpTo += (robot) =>
|
||||
{
|
||||
mainCam.Position = new Vector3(robot.Position.X, mainCam.Position.Y, robot.Position.Z);
|
||||
};
|
||||
|
||||
codingWindow.OnInformation += information.DisplayInformation;
|
||||
}
|
||||
|
||||
public void ChangeColor(Color color)
|
||||
|
||||
Reference in New Issue
Block a user