コード例 #1
0
 private void Update()
 {
     if (InputController.GetKeyDown(UndoKey) && InputController.GetKey(ModifierKey))
     {
         RuntimeUndo.Undo();
     }
     else if (InputController.GetKeyDown(RedoKey) && InputController.GetKey(ModifierKey))
     {
         RuntimeUndo.Redo();
     }
 }
コード例 #2
0
        public static bool _GetKeyDown(KeyCode key)
        {
            if (m_instance != null)
            {
                if (m_instance.m_isInputFieldSelected)
                {
                    return(false);
                }
                return(m_instance.GetKeyDown(key));
            }

            return(Input.GetKeyDown(key));
        }