private void OnDebugJoyConfig() { var menus = MyEnum.GetNames <App.JoyType>(); using (new GUILayout.HorizontalScope()) { GUILayout.Label("JoyConfig"); __SelectedJoyConfigIndex = GUILayout.SelectionGrid(__SelectedJoyConfigIndex, menus, menus.Length); } App.JoyType type = MyEnum.Parse <App.JoyType>(menus[__SelectedJoyConfigIndex]); this.joyConfigs[type].OnDebug(); }
/// <summary> /// JoyConfigを取得 /// </summary> public JoyConfig GetJoyConfig(App.JoyType type) { return(this.joyConfigs[type]); }