这是第一个 Unity 开放项目的repo,是 Unity 和社区合作创建的一个小型开源游戏演示,第一款游戏是一款名为 Chop Chop 的动作冒险游戏。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
kgc00 96983fe8 doc 4 年前
..
DebugMenu.cs debug 4 年前
DebugMenu.cs.meta debug 4 年前
MenuInput.cs removed ununsed var 4 年前
MenuInput.cs.meta menu input 4 年前
README.md doc 4 年前
README.md.meta doc 4 年前
SelectableUIElement.cs updates 4 年前
SelectableUIElement.cs.meta menu input 4 年前

README.md

#Overview MenuInput class acts as manager for menu input logic

  • it consumes events provided by the InputReader class
  • adds custom selection and component caching behaviour
  • must be present on the same transform as the SelectableUI components it controls

SelectableUIELement send messages to the MenuInput when a mouse is over them

  • they have events for mouse enter and exit
  • they find the MenuInput component by checking the root transform for children with the MenuInput class (can be refactored later)

##TODO

  • mouse click activates the currently selected UI element (even if the mouse is not over it)
  • if the keyboard or gamepad navigates the selection away from a UI element which the mouse is over, you must move the mouse out of the game object's bounds and re-enter to select it again.