WUT_Computer_Science/Programming/E-PSYOPS/theProject/Assets/Scripts/TickSystem/ExampleTickReceiver.cs
2026-02-06 22:15:13 +01:00

17 lines
361 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExampleTickReceiver : MonoBehaviour
{
void Awake()
{
TickSystem.OnTick += HandleTick;
}
private void HandleTick(TickSystem.OnTickEventArgs tickEventArgs)
{
Debug.Log($"Example of tick #{tickEventArgs.tickNumber} being handled");
}
}