예제 #1
0
        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());
                }
            }
        }