22 lines
342 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EffectActivator : MonoBehaviour
{
public ParticleSystem effect;
private void Start()
{
SingleWallet.onCoinRemoved.AddListener(Activate);
}
public void Activate(int newCount)
{
effect.Emit(10);
}
}