예제 #1
0
 private void OnDestroy()
 {
     if (allCoinsSet != null)
     {
         allCoinsSet.Remove(this);
     }
     else
     {
         Debug.LogError("AllCoinsSet is null for " + this.name);
     }
 }
예제 #2
0
 private void OnDisable()
 {
     if (activeCoinsSet != null)
     {
         activeCoinsSet.Remove(this);
     }
     else
     {
         Debug.LogError("ActiveCoinsSet is null for " + this.name);
     }
 }