示例#1
0
 public void ClickOnRemoveStockpileCommand() => CommandInputStateMachine.SwitchCommandState(new RemoveStockpileState());
示例#2
0
 public override void Select()
 {
     base.Select();
     CommandInputStateMachine.SwitchCommandState(new MoveCommandInputState());
 }
示例#3
0
 public void ClickOnBuildCommand(ConstructionScriptableObject construction) => CommandInputStateMachine.SwitchCommandState(new BuildCommandInputState(construction));
示例#4
0
 public void ClickOnCutCommand() => CommandInputStateMachine.SwitchCommandState(new CutCommandInputState());
示例#5
0
 public void ClickOnCancelJobCommand() => CommandInputStateMachine.SwitchCommandState(new CancelJobInputState());
示例#6
0
 private void Initialize()
 {
     CreateWorld();
     Camera.main.GetComponent <CameraController>().Init();
     CommandInputStateMachine.Initialize();
 }
示例#7
0
 protected virtual void SwitchToDefaultState() => CommandInputStateMachine.SwitchCommandState(new DefaultInputState());