コード例 #1
0
ファイル: PlayerHud.cs プロジェクト: troseberry/Woodlands
    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
ファイル: PlayerHud.cs プロジェクト: troseberry/Woodlands
 public void ToolWheelSwitchExecute()
 {
     CharacterInputController.HandleToolInput(toolWheelEquipIndex);
 }
コード例 #3
0
ファイル: PlayerHud.cs プロジェクト: troseberry/Woodlands
 public void CallForToolSwitch(int index)
 {
     CharacterInputController.HandleToolInput(index);
 }