private void OnEnable() { if (activeCoinsSet != null) { activeCoinsSet.Add(this); } else { Debug.LogError("ActiveCoinsSet is null for " + this.name); } }
private void Awake() { if (allCoinsSet != null) { allCoinsSet.Add(this); } else { Debug.LogError("AllCoinsSet is null for " + this.name); } }