22 lines
339 B
C#
22 lines
339 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class EffectActivator1 : MonoBehaviour
|
|
{
|
|
public ParticleSystem effect;
|
|
|
|
private void Start()
|
|
{
|
|
SingleWallet.onCoinAdded.AddListener(Activate);
|
|
|
|
|
|
}
|
|
|
|
public void Activate(int newCount)
|
|
{
|
|
effect.Play();
|
|
}
|
|
|
|
}
|