private void GenerateLotOfLogs() { int qt = UnityEngine.Random.Range(100, 200); for (int i = 0; i < qt; i++) { int random = UnityEngine.Random.Range(1, 6); if (random == 1) { Test1.LogLevelOne(RandomMessage(), RandomLogType()); } else if (random == 2) { Test1.LogLevelTwo(RandomMessage(), RandomLogType()); } else if (random == 3) { Test1.LogLevelThree(RandomMessage(), RandomLogType()); } else if (random == 4) { Test1.LogLevelFour(RandomMessage(), RandomLogType()); } else { Test1.LogLevelFive(RandomMessage(), RandomLogType()); } } }
private void GenerateLotOfLogs() { int qt = Random.Range(100, 200); for (int i = 0; i < qt; i++) { int random = Random.Range(1, 7); Test1.BigCallStack(RandomMessage, RandomLogType); if (random == 1) { Test1.LogLevelOne(RandomMessage, RandomLogType); } else if (random == 2) { Test1.LogLevelTwo(RandomMessage, RandomLogType); } else if (random == 3) { Test1.LogLevelThree(RandomMessage, RandomLogType); } else if (random == 4) { Test1.LogLevelFour(RandomMessage, RandomLogType); } else if (random == 5) { Test1.LogLevelFive(RandomMessage, RandomLogType); } else if (random == 6) { Test1.LogLevelSix(RandomMessage, RandomLogType); } } }
private void Update() { // int h = 5; if (Input.GetKeyDown(KeyCode.A)) { Test1.LogLevelOne(RandomMessage(), RandomLogType()); } else if (Input.GetKeyDown(KeyCode.S)) { Test1.LogLevelTwo(RandomMessage(), RandomLogType()); } else if (Input.GetKeyDown(KeyCode.D)) { Test1.LogLevelThree(RandomMessage(), RandomLogType()); } else if (Input.GetKeyDown(KeyCode.F)) { Test1.LogLevelFour(RandomMessage(), RandomLogType()); } else if (Input.GetKeyDown(KeyCode.G)) { Test1.LogLevelFive(RandomMessage(), RandomLogType()); } else if (Input.GetKeyDown(KeyCode.H)) { GenerateLotOfLogs(); } else if (Input.GetKeyDown(KeyCode.J)) { int?t = null; Debug.LogError(t); } else if (Input.GetKeyDown(KeyCode.K)) { Debug.Log(BigString); } else if (Input.GetKeyDown(KeyCode.L)) { // bool t = 1 & 0; } else if (Input.GetKeyDown(KeyCode.M)) { foreach (var en in Enum.GetValues(typeof(ConsoleWindowMode))) { var enn = (ConsoleWindowMode)en; if (((int)enn & 16640) != 0) { Debug.LogError("Has this mode: " + enn.ToString()); } } } _time += Time.deltaTime; if (_time >= LOG_DELAY) { _time = 0f; for (int i = 0; i < 30; i++) { // Test1.LogLevelFive("Update!!!", RandomLogType()); } } }