State Tracker
Options
erre
✭
Hi,
How does StateTracker work in 1.0.6? I read that TrueSyncBehaviour are tracked automatically.
But how this thing works if I have a class hierarchy? I mean, If I have:
How does StateTracker work in 1.0.6? I read that TrueSyncBehaviour are tracked automatically.
But how this thing works if I have a class hierarchy? I mean, If I have:
public class A : TrueSyncBehaviourIf i have an instance of B created after call
{
[AddTracking]
private FP m_Timer = 0;
}
public class B : A
{
.
.
}
is m_Timer tracked also if it's private? Or must it be at least protected? Or should I force a StateTracker.Add(this) ?
StateTracker.Init()
0
Comments
-
Hello @erre,
It should work fine even if it is private. As you noticed the TSBehaviours are tracked automatically now, but if you have a class from a different hierarchy you can call StateTracker.Add(this).0