private void OnEnable() { var rGo = AssetDatabase.LoadAssetAtPath("Assets/Game/GameAsset/GUI/Prefabs/TextStyleManager.prefab", typeof(GameObject)) as GameObject; if (rGo) { this.mTextStyleManager = rGo.GetComponent <TextStyleManager>(); } }
private void OnEnable() { mTarget = this.target as TextStyleManager; mTextStyles = this.serializedObject.FindProperty("TextStyles"); }