protected virtual void OnEnable() { StringSubstituter.RegisterHandler(this); #if UNITY_5_4_OR_NEWER UnityEngine.SceneManagement.SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; #endif }
protected virtual void OnEnable() { if (!cachedFlowcharts.Contains(this)) { cachedFlowcharts.Add(this); } CheckItemIds(); CleanupComponents(); UpdateVersion(); StringSubstituter.RegisterHandler(this); }
protected virtual void OnEnable() { if (!cachedFlowcharts.Contains(this)) { cachedFlowcharts.Add(this); #if UNITY_5_4_OR_NEWER UnityEngine.SceneManagement.SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; #endif } CheckItemIds(); CleanupComponents(); UpdateVersion(); StringSubstituter.RegisterHandler(this); }
protected virtual void OnEnable() { if (!cachedFlowcharts.Contains(this)) { cachedFlowcharts.Add(this); //TODO these pairs could be replaced by something static that manages all active flowcharts #if UNITY_5_4_OR_NEWER UnityEngine.SceneManagement.SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; #endif } CheckItemIds(); CleanupComponents(); UpdateVersion(); StringSubstituter.RegisterHandler(this); }
protected virtual void OnEnable() { StringSubstituter.RegisterHandler(this); }