예제 #1
0
 private void DoDestroy()
 {
     if (_profiler != null)
     {
         UnityEngine.Object.Destroy(_profiler.gameObject);
         _profiler = null;
     }
 }
예제 #2
0
 public static void CreateMemoryProfiler()
 {
     if (_profiler == null)
     {
         GameObject target = new GameObject("MemoryProfilerGUI");
         target.AddComponent <MonoMemoryProfiler>();
         UnityEngine.Object.DontDestroyOnLoad(target);
         _profiler = target.GetComponent <MonoMemoryProfiler>();
     }
 }
예제 #3
0
        public void OnOkButtonCallBack()
        {
            string text = base.view.transform.Find("Dialog/InputField").GetComponent <InputField>().text;

            if (MonoMemoryProfiler.ParseCommand(text))
            {
                MonoMemoryProfiler.CreateMemoryProfiler();
            }
            char[]   separator = new char[] { ";"[0] };
            string[] strArray  = text.Split(separator);
            for (int i = 0; i < strArray.Length; i++)
            {
                Singleton <TestModule> .Instance.RequestGMTalk(strArray[i].Trim());
            }
            this.Destroy();
        }