2026-01-12 09:36:17 +03:00

22 lines
340 B
C#

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