コード例 #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);
     }
 }