private void HandleKeyInput(KeyManager.EKeyCommand _command, KeyManager.EKeyPressType _pressType) { if (command == _command && pressType == _pressType) { ActivateTrigger(); } }
public virtual void KeyInput(KeyManager.EKeyCommand command, KeyManager.EKeyPressType pressType) { if (state == false) { return; } keyInputDel(command, pressType); }
public TrgKeyInput(Actor _owner, KeyManager.EKeyCommand _command, KeyManager.EKeyPressType _pressType) : base(_owner) { command = _command; pressType = _pressType; if (owner.TryGetOperable(out Controllable control)) { control.keyInputDel += HandleKeyInput; } else { Debug.LogWarning(owner + " doesn't have controllable"); } }
public static void KeyInputMethod(KeyManager.EKeyCommand command, KeyManager.EKeyPressType pressType) { }
private void HandleKeyInput(KeyManager.EKeyCommand _command, KeyManager.EKeyPressType _pressType) { command = _command; pressType = _pressType; ActivateTrigger(); }
public override void Init() { base.Init(); command = KeyManager.EKeyCommand.NONE; pressType = KeyManager.EKeyPressType.NONE; }