Thanks for the answer.
I have been too busy with work to try it.
Question 1
Is the ↓ method correct?
I don't know how to get the EquipShortcut type.
EquipShortcut weaponShortcut = ?
if (combatant.equipped)
weaponGameObject.GetComponent<EquipShortcutLinkerComponent>().Equipment = null;
else
weaponGameObject.GetComponent<EquipShortcutLinkerComponent>().Equipment = weaponShortcut;
Question 2
The method of using the above script seems too difficult for me, so I am considering using GlobalEvent when the button on the control map is pressed.
I've looked at the Equipment setting in the EquipCondition of GameEvent, but I can only see how to select static weapons (for example, in the ORK ShortCut setting, I can only see how to select a fixed "ShortSword" from the pull-down menu).
What I want to do is.
If you press a button on the control map, you can use ShortCut to remove the currently equipped weapon.
If I press the control map button again, I want to equip the weapon that I had equipped last time.
What is the best way to do this?
Translated with www.DeepL.com/Translator (free version)