mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:23:07 +02:00
17 lines
361 B
C#
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");
|
||
|
|
}
|
||
|
|
}
|