public void OnDestroy() { if (activeInstance == this) { activeInstance = null; } }
public void Stop() { if (activeInstance == this) { activeInstance = null; ImageEffects.ImageEffectManager.API_ResetSceneBrightness(); } Stop_Constant(); Stop_Curve(); bPlay = false; }
public void Play() { if (activeInstance) { return; } Stop(); activeInstance = this; bPlay = true; ResetValue(); }
public void OnEnable() { pa = target as Effect_ModifSceneBrightness; }