public void ClickOnRemoveStockpileCommand() => CommandInputStateMachine.SwitchCommandState(new RemoveStockpileState());
public override void Select() { base.Select(); CommandInputStateMachine.SwitchCommandState(new MoveCommandInputState()); }
public void ClickOnBuildCommand(ConstructionScriptableObject construction) => CommandInputStateMachine.SwitchCommandState(new BuildCommandInputState(construction));
public void ClickOnCutCommand() => CommandInputStateMachine.SwitchCommandState(new CutCommandInputState());
public void ClickOnCancelJobCommand() => CommandInputStateMachine.SwitchCommandState(new CancelJobInputState());
private void Initialize() { CreateWorld(); Camera.main.GetComponent <CameraController>().Init(); CommandInputStateMachine.Initialize(); }
protected virtual void SwitchToDefaultState() => CommandInputStateMachine.SwitchCommandState(new DefaultInputState());