private void refreshData() { if (mToolbar_Text == null || mToolbar_Text.Length == 0) { mToolbar_Text = I18Ns.Toolbar_title; } _target = (TinaX.XComponent.XComponentScriptBase) this.target; mBaseTypeNames = XComponents.GetTypeNames(); mDict_baseTypeName = new Dictionary <string, int>(); refresh_data = true; }
private void OnEnable() { if (target != null) { serializedObject = new SerializedObject(target); if (mToolbar_Text == null || mToolbar_Text.Length == 0) { mToolbar_Text = I18Ns.Toolbar_title; } mBaseTypeNames = XComponents.GetTypeNames(); mDict_baseTypeName = new Dictionary <string, int>(); } }