💡FAQ

v1.0

My Awake(), Update(), OnEnable() methods aren't executing

The MagicTimeUser class uses various Unity lifecycle events, and they are virtual. Make sure that your subclasses which derive from MagicTimeUser are properly overriding the methods, and calling "Base".

// --- MagicTimeUser.cs
protected virtual void Update()
{
    // NOTE: If this isn't firing, make sure you are not overriding Update in a subclass!!!
    
    HandleTransition();
}

// --- MyDerivedClass.cs
protected override void Update()
{
    // Generally call this first, and do checks like those below on each Update() if needed
    base.Update(); // This ensures that the Update() on the parent class is called

    if (!FullySetup) return;
    if (IsDead) return;
    
    // More Update() actions can go here...
}

Last updated