/// <summary> /// Sets up the manager. /// </summary> private void Initialize() { _instance = this; #if UNITY_EDITOR _recompileMarker = new RecompiledMarker(); #endif _isDestroyed = false; UpdateCameraEvents(Camera.allCameras); }
private void OnDestroy() { _instance = null; _isDestroyed = true; }
private void OnEnable() { _object = target as SS_ShadowManager; }