Пример #1
0
 private void OnEnable()
 {
     if (activeCoinsSet != null)
     {
         activeCoinsSet.Add(this);
     }
     else
     {
         Debug.LogError("ActiveCoinsSet is null for " + this.name);
     }
 }
Пример #2
0
 private void Awake()
 {
     if (allCoinsSet != null)
     {
         allCoinsSet.Add(this);
     }
     else
     {
         Debug.LogError("AllCoinsSet is null for " + this.name);
     }
 }