Exemple #1
0
        protected virtual void Awake()
        {
            activeTime = offset;

            if (interval < 0.01f)
            {
                interval = 0.01f;
            }

            ResetManager.Register(this, resetKey);
            SuspensionManager.Register(this, suspensionKey);
        }
Exemple #2
0
 protected virtual void OnDestroy()
 {
     ResetManager.Unregister(this, resetKey);
     SuspensionManager.Unregister(this, suspensionKey);
 }