内存检测器,目前只是输出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
文件: QConsole.cs 项目: jonntd/Xbl
        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;
 }