@@ -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,9 +73,8 @@ private void SyncGUID()
7373 ObjectUtility . SetDirty ( this ) ;
7474 }
7575#endif
76-
7776 }
78-
77+
7978 public override int GetHashCode ( )
8079 {
8180 return GUID . GetHashCode ( ) ;
@@ -92,4 +91,4 @@ public void GenerateNewGUID()
9291 SyncGUID ( ) ;
9392 }
9493 }
95- }
94+ }
0 commit comments