private void Awake() { objManager = GameObject.Find("ObjManager").GetComponent <ObjManager>(); panelStatusController = objManager.panelStatusController; gameObject.layer = Macro.MODEL3D_ITEM; //设置为model3dItem层 gameObject.tag = Macro.UNSELECTED; //将tag设置为未选中 }
void Awake() { objManager = GameObject.Find("ObjManager").GetComponent <ObjManager>(); panelStatusController = objManager.panelStatusController; }
void Start() { panelStatus = objManager.panelStatus; panelStatusController = panelStatus.GetComponentInChildren <PanelStatusController>(); editorObjectSelection = objManager.editorObjectSelection; }