示例#1
0
    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);
    }
示例#2
0
 public void ToolWheelSwitchExecute()
 {
     CharacterInputController.HandleToolInput(toolWheelEquipIndex);
 }
示例#3
0
 public void CallForToolSwitch(int index)
 {
     CharacterInputController.HandleToolInput(index);
 }