| | 1 | | // Copyright (c) 2020-2022 dotBunny Inc. |
| | 2 | | // dotBunny licenses this file to you under the BSL-1.0 license. |
| | 3 | | // See the LICENSE file in the project root for more information. |
| | 4 | |
|
| | 5 | | using System; |
| | 6 | |
|
| | 7 | | namespace GDX.Developer.ConsoleCommands |
| | 8 | | { |
| | 9 | | #if UNITY_2022_2_OR_NEWER |
| | 10 | | public class ShowConsoleCommand : ConsoleCommandBase |
| | 11 | | { |
| | 12 | | public static Action ShowConsole; |
| | 13 | |
|
| | 14 | | /// <inheritdoc /> |
| | 15 | | public override bool Evaluate(float deltaTime) |
| 0 | 16 | | { |
| 0 | 17 | | ShowConsole?.Invoke(); |
| 0 | 18 | | return true; |
| 0 | 19 | | } |
| | 20 | |
|
| | 21 | | /// <inheritdoc /> |
| | 22 | | public override Console.ConsoleAccessLevel GetAccessLevel() |
| 0 | 23 | | { |
| 0 | 24 | | return Console.ConsoleAccessLevel.Anonymous; |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <inheritdoc /> |
| | 28 | | public override string GetKeyword() |
| 7 | 29 | | { |
| 7 | 30 | | return "show"; |
| 7 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <inheritdoc /> |
| | 34 | | public override string GetHelpMessage() |
| 0 | 35 | | { |
| 0 | 36 | | return "Shows the developer console."; |
| 0 | 37 | | } |
| | 38 | | } |
| | 39 | | #endif // UNITY_2022_2_OR_NEWER |
| | 40 | | } |