Пример #1
0
 private void HandleKeyInput(KeyManager.EKeyCommand _command, KeyManager.EKeyPressType _pressType)
 {
     if (command == _command && pressType == _pressType)
     {
         ActivateTrigger();
     }
 }
Пример #2
0
        public virtual void KeyInput(KeyManager.EKeyCommand command, KeyManager.EKeyPressType pressType)
        {
            if (state == false)
            {
                return;
            }

            keyInputDel(command, pressType);
        }
Пример #3
0
        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");
            }
        }
Пример #4
0
 public static void KeyInputMethod(KeyManager.EKeyCommand command, KeyManager.EKeyPressType pressType)
 {
 }
Пример #5
0
 private void HandleKeyInput(KeyManager.EKeyCommand _command, KeyManager.EKeyPressType _pressType)
 {
     command   = _command;
     pressType = _pressType;
     ActivateTrigger();
 }
Пример #6
0
 public override void Init()
 {
     base.Init();
     command   = KeyManager.EKeyCommand.NONE;
     pressType = KeyManager.EKeyPressType.NONE;
 }