Added rest of the sequencing

This commit is contained in:
cblech
2025-01-05 17:13:12 +01:00
parent 8c961cbf2d
commit 24905179ce
30 changed files with 12935 additions and 28 deletions
+21
View File
@@ -0,0 +1,21 @@
using UnityEngine;
using UnityEngine.Events;
public class Counter : MonoBehaviour
{
[SerializeField]
private int _count = 0;
[SerializeField]
private int _maxCount = 4;
[SerializeField]
private UnityEvent _onAllDone;
public void Count()
{
_count++;
if(_count>=_maxCount)
_onAllDone.Invoke();
}
}