Пример #1
0
        public void ExitScope()
        {
#if NS_DEBUG_SCOPE_ACTIVITY
            UnityEngine.Debug.LogFormat("<color=red>Exited</color> Scope <color=white>{0}</color>", GetType().Name);
#endif

#if UNITY_EDITOR && SCOPE_DEBUGGING
            ScopeDebugger.AddScopeEvent(this, null, ScopeDebugger.ScopeEvent.Type.Exit);
#endif

            OnExitScope();

            OnExitScopeEvent();

            IsActive = false;
        }
Пример #2
0
        public void EnterScope()
        {
            IsActive = true;

#if NS_DEBUG_SCOPE_ACTIVITY
            UnityEngine.Debug.LogFormat("<color=green>Entered</color> Scope <color=white>{0}</color>", GetType().Name);
#endif

#if UNITY_EDITOR && SCOPE_DEBUGGING
            ScopeDebugger.AddScopeEvent(this, null, ScopeDebugger.ScopeEvent.Type.Enter);
#endif

            OnEnterScope();

            OnEnterScopeEvent();
        }