Add SFX and SFX logic
This commit is contained in:
parent
f0e4f6c9ba
commit
1aa97baff4
19 changed files with 504 additions and 8 deletions
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -5,6 +6,8 @@ using UnityEngine;
|
|||
public class BaseCounter : MonoBehaviour, IKitchenObjectParent
|
||||
{
|
||||
|
||||
public static event EventHandler OnAnyObjectPlaced;
|
||||
|
||||
[SerializeField] private Transform counterTopPoint;
|
||||
|
||||
private KitchenObject kitchenObject;
|
||||
|
@ -28,6 +31,11 @@ public class BaseCounter : MonoBehaviour, IKitchenObjectParent
|
|||
public void SetKitchenObject(KitchenObject kitchenObject)
|
||||
{
|
||||
this.kitchenObject = kitchenObject;
|
||||
|
||||
if (kitchenObject != null )
|
||||
{
|
||||
OnAnyObjectPlaced?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
public KitchenObject GetKitchenObject()
|
||||
|
|
Reference in a new issue