1- using System ;
1+ using System ;
22using UnityEngine ;
33
44namespace BrunoMikoski . ScriptableObjectCollections
@@ -19,7 +19,7 @@ public string GUID
1919 [ SerializeField , HideInInspector ]
2020 private ScriptableObjectCollection collection ;
2121 public ScriptableObjectCollection Collection => collection ;
22-
22+
2323 public void SetCollection ( ScriptableObjectCollection collection )
2424 {
2525 this . collection = collection ;
@@ -40,7 +40,7 @@ public override bool Equals(object o)
4040 return ReferenceEquals ( this , other ) ;
4141 }
4242
43- public static bool operator == ( CollectableScriptableObject left , CollectableScriptableObject right )
43+ public static bool operator == ( CollectableScriptableObject left , CollectableScriptableObject right )
4444 {
4545 if ( ReferenceEquals ( left , right ) )
4646 return true ;
@@ -61,9 +61,9 @@ public override bool Equals(object o)
6161
6262 private void SyncGUID ( )
6363 {
64- if ( ! string . IsNullOrEmpty ( guid ) )
64+ if ( ! string . IsNullOrEmpty ( guid ) )
6565 return ;
66-
66+
6767 guid = Guid . NewGuid ( ) . ToString ( ) ;
6868#if UNITY_EDITOR
6969 string assetPath = UnityEditor . AssetDatabase . GetAssetPath ( this ) ;
@@ -73,8 +73,9 @@ private void SyncGUID()
7373 ObjectUtility . SetDirty ( this ) ;
7474 }
7575#endif
76+
7677 }
77-
78+
7879 public override int GetHashCode ( )
7980 {
8081 return GUID . GetHashCode ( ) ;
@@ -91,4 +92,4 @@ public void GenerateNewGUID()
9192 SyncGUID ( ) ;
9293 }
9394 }
94- }
95+ }
0 commit comments