public void CallForToolSwitch() { string buttonName = EventSystem.current.currentSelectedGameObject.name; int toolToEquipIndex = 0; switch (buttonName) { case "Tool_02": toolToEquipIndex = 1; break; case "Tool_03": toolToEquipIndex = 2; break; case "Tool_04": toolToEquipIndex = 3; break; } CharacterInputController.HandleToolInput(toolToEquipIndex); }
public void ToolWheelSwitchExecute() { CharacterInputController.HandleToolInput(toolWheelEquipIndex); }
public void CallForToolSwitch(int index) { CharacterInputController.HandleToolInput(index); }