Beispiel #1
0
        private static void     OnSettingsGenerated(ScriptableObject settings)
        {
            CustomHotkeysSettings hotkeys = settings as CustomHotkeysSettings;

            if (hotkeys != null)
            {
                hotkeys.hotkeys.Add(new CustomHotkeysSettings.MethodHotkey()
                {
                    bind = "%G", staticMethod = typeof(NGScenesWindow).FullName + ".Open"
                });
            }
        }
Beispiel #2
0
        private static void     OnSettingsGenerated(ScriptableObject asset)
        {
            CustomHotkeysSettings hotkeys = asset as CustomHotkeysSettings;

            if (hotkeys != null)
            {
                hotkeys.hotkeys.Add(new CustomHotkeysSettings.MethodHotkey()
                {
                    bind = "%W", staticMethod = typeof(NGConsoleWindow).FullName + ".ClearNGConsole"
                });
            }
        }