WUT_Computer_Science/The project/Assets/Scripts/TickSystem/ExampleTickReceiver.cs
2022-05-16 14:23:32 +02: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");
}
}