Add SFX and SFX logic
This commit is contained in:
parent
f0e4f6c9ba
commit
1aa97baff4
19 changed files with 504 additions and 8 deletions
|
@ -6,6 +6,8 @@ using UnityEngine;
|
|||
public class CuttingCounter : BaseCounter, IHasProgress
|
||||
{
|
||||
|
||||
public static event EventHandler OnAnyCut;
|
||||
|
||||
public event EventHandler<IHasProgress.OnProgressChangeEventsArgs> OnProgressChange;
|
||||
public event EventHandler OnCut;
|
||||
|
||||
|
@ -72,6 +74,7 @@ public class CuttingCounter : BaseCounter, IHasProgress
|
|||
cuttingProgress++;
|
||||
|
||||
OnCut?.Invoke(this, EventArgs.Empty);
|
||||
OnAnyCut?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
CuttingRecipeSO cuttingRecipeSO = GetCuttingRecipeSOWithInput(GetKitchenObject().GetKitchenObjectSO());
|
||||
|
||||
|
|
Reference in a new issue