示例#1
0
        public override void OnInspectorGUI()
        {
            if (target == null || littleZooBuildinPos == null)
            {
                return;
            }

            base.OnInspectorGUI();

            if (GUILayout.Button("刷新"))
            {
                littleZooBuildinPos.ProtecteRoot();
                littleZooBuildinPos.gameObject.SetActive(true);
            }

            //if (GUILayout.Button("保存"))
            //{
            //    littleZooBuildinPos.ProtecteRoot();
            //    littleZooBuildinPos.gameObject.SetActive(false);
            //    ShowPathLinesEditor.ApplyPrefab(littleZooBuildinPos.gameObject);
            //}

            if (GUILayout.Button("导出"))
            {
                littleZooBuildinPos.ProtecteRoot();
                littleZooBuildinPos.gameObject.SetActive(false);
                ExportToCSHARP();
                ShowPathLinesEditor.ApplyPrefab(littleZooBuildinPos.gameObject);
            }
        }
 protected void Save()
 {
     ShowPathLinesEditor.ApplyPrefab(zooCamera.gameObject);
 }