private void Start() { if (Application.platform != RuntimePlatform.WindowsPlayer && Application.platform != RuntimePlatform.WindowsEditor) { return; } DebugLogConsole.AddCommandStatic("login", "Sign in to this app on this device.", "Auth", typeof(GoogleWindowsSignIn)); }
public void Start() { Log.Debug(string.Format("ConsoleManager.Start()")); // TODO: Use C# attributes to define commands instead of hard-wiring here // or at least raise an event to let components know they can register // add instance methods DebugLogConsole.AddCommandInstance(command: "SetMuteAudio", methodName: "SetMuteAudio", instance: AudioManager.Instance); // add static methods DebugLogConsole.AddCommandStatic(command: "Version", methodName: "ConsoleApplicationVersion", ownerType: typeof(ApplicationHelper)); }
public override void OnLevelLoaded(LevelDefinition levelDefinition) { DebugLogConsole.AddCommandStatic("spawnparty", "Spawn a party", "SpawnParty", typeof(CharacterParty)); GameManager.onPossessionEvent += GameManager_onPossessionEvent; try { harmony = HarmonyInstance.Create("CharacterParty"); harmony.PatchAll(Assembly.GetExecutingAssembly()); Debug.Log("CharacterParty successfully loaded!"); } catch (System.Exception e) { Debug.LogException(e); } }
void Start() { DebugLogConsole.AddCommandStatic("spawncard", "Creates a card at specified position", "CreateCardAt", typeof(ConsoleCommands)); DebugLogConsole.AddCommandStatic("gencards", "Generates some cards", "GenerateSomeCards", typeof(ConsoleCommands)); }