Repository navigation
Version 0.6
🧪 What's new? 9/24/24
🧪 1) GlobalDiscreteUpdateAttribute:
This code logs same frame number in same frame.
If one of them ordered with 1 (or something different) they will log different frame numbers.
public class TestCode : SchedulableBehaviour
{
public static int frames = 0;
[DiscreteUpdate(0)]
void StandardUpdate()
{
frames++;
}
[GlobalDiscreteUpdate(0)]
void Update1()
{
Debug.Log("1: " + frames);
}
}
public class TestCode2 : SchedulableBehaviour
{
[GlobalDiscreteUpdate(0)]
void Update2()
{
Debug.Log("2: " + TestCode.frames);
}
}