mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 12:43:04 +02:00
git-subtree-dir: Programming/E-PSYOPS git-subtree-mainline:95fa9d2259git-subtree-split:de582f1b0e
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");
|
|
}
|
|
}
|