Exemple #1
0
 void OnEnable()
 {
     _t = (AutoNaming)target;
     if (bPrefab = PrefabHelper.IsPrefab(_t.gameObject))
     {
         return;
     }
     OnOffToggle    = serializedObject.FindProperty("bAutoName");
     Postfix_Sprite = serializedObject.FindProperty("bPostfix_Sprite");
     formatString   = serializedObject.FindProperty("format");
 }
Exemple #2
0
 void OnEnable()
 {
     if (bPrefab = PrefabUtility.GetPrefabType(target).Equals(PrefabType.Prefab))
     {
         return;
     }
     _t             = (AutoNaming)target;
     OnOffToggle    = serializedObject.FindProperty("bAutoName");
     Postfix_Sprite = serializedObject.FindProperty("bPostfix_Sprite");
     formatString   = serializedObject.FindProperty("format");
 }