smart-interactive-display/Assets/GadGame/Scripts/MiniGame/Bomb.cs

17 lines
353 B
C#
Raw Normal View History

2024-04-15 04:10:00 -07:00
using GadGame.Manager;
using Pools.Runtime;
using UnityEngine;
namespace GadGame.MiniGame
{
public class Bomb : MonoBehaviour, ICollect
{
[SerializeField] private int _reduceScore;
public void Collect()
{
GameManager.Instance.UpdateScore(-_reduceScore);
this.Release();
}
}
}