内存检测器,目前只是输出Profiler信息
Пример #1
0
 private QConsole()
 {
     this.fpsCounter     = new QFPSCounter(this);
     this.memoryDetector = new QMemoryDetector(this);
     Framework.Instance.OnUpdateCallback += Update;
     Framework.Instance.OnGUICallback    += OnGUI;
     Application.logMessageReceived      += HandleLog;
 }
Пример #2
0
 public QConsole()
 {
     this.fpsCounter     = new QFPSCounter(this);
     this.memoryDetector = new QMemoryDetector(this);
     //GameManager.instance.onUpdate += Update;
     //GameManager.instance.onGUI += OnGUI;
     Application.logMessageReceived += HandleLog;
 }
Пример #3
0
 private QConsole()
 {
     this.fpsCounter     = new QFPSCounter(this);
     this.memoryDetector = new QMemoryDetector(this);
     //        this.showGUI = App.Instance().showLogOnGUI;
     QApp.Instance.onUpdate         += Update;
     QApp.Instance.onGUI            += OnGUI;
     Application.logMessageReceived += HandleLog;
 }
Пример #4
0
        //private QConsole()
        void Awake()
        {
            this.fpsCounter     = new QFPSCounter(this);
            this.memoryDetector = new QMemoryDetector(this);
            //        this.showGUI = App.Instance().showLogOnGUI;
            //QApp.Instance().onUpdate += Update;
            //QApp.Instance().onGUI += OnGUI;
            Application.logMessageReceived += HandleLog;

            DontDestroyOnLoad(gameObject);
        }
Пример #5
0
        protected override void Init()
        {
            ConsoleFontGUIStyle.normal.textColor = Color.white;
            ConsoleFontGUIStyle.fontSize         = 30;

            ConsoleFontGUIStyle2.normal.textColor = Color.white;
            ConsoleFontGUIStyle2.fontSize         = 30;

            this.fpsCounter     = new QFPSCounter(this);
            this.memoryDetector = new QMemoryDetector(this);

            QApp.Instance().onUpdate += Update;
            QApp.Instance().onGUI    += OnGUI;
            Application.logMessageReceived += HandleLog;
        }
Пример #6
0
 private void Awake()
 {
     this.fpsCounter                 = new QFPSCounter(this);
     this.memoryDetector             = new QMemoryDetector(this);
     Application.logMessageReceived += HandleLog;
 }