Add SFX and SFX logic

This commit is contained in:
BuyMyMojo 2023-03-03 05:10:23 +11:00
parent f0e4f6c9ba
commit 1aa97baff4
19 changed files with 504 additions and 8 deletions

View file

@ -1,14 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TrashCounter : BaseCounter
{
public static event EventHandler OnAnyObjectTrashed;
public override void Interact(Player player)
{
if (player.HasKitchenObject())
{
player.GetKitchenObject().DestroySelf();
OnAnyObjectTrashed?.Invoke(this, EventArgs.Empty);
}
}
}