示例#1
0
 // Token: 0x06001363 RID: 4963 RVA: 0x00070F48 File Offset: 0x0006F148
 public void EnableEffect(ImageEffectManager.ImageEffectType imageEffectType, float duration, float intensity)
 {
     if (this._effects.ContainsKey(imageEffectType) && this._effectsParameters.ContainsKey(imageEffectType))
     {
         this._effects[imageEffectType].enabled = true;
         if (imageEffectType == ImageEffectManager.ImageEffectType.BloomAndLensFlares)
         {
             this._effectsParameters[imageEffectType].SetBaseIntensity(((BloomAndLensFlares)this._effects[ImageEffectManager.ImageEffectType.BloomAndLensFlares]).bloomIntensity);
         }
         if (intensity > 0f)
         {
             this._effectsParameters[imageEffectType].SetBaseIntensity(intensity);
         }
         if (duration > 0f)
         {
             this._effectsParameters[imageEffectType].SetTotalAndActiveTime(duration);
             this._effectsParameters[imageEffectType].SetTimedEnable(true);
         }
         else
         {
             this._effectsParameters[imageEffectType].SetPermanentEnable(true);
         }
         this._currentEffect = imageEffectType;
     }
     else
     {
         Debug.LogError("You're trying to enable an effect that hasn't been initialized. Check the components on MainCamera in the level.");
     }
 }
示例#2
0
 // Token: 0x06001364 RID: 4964 RVA: 0x00071030 File Offset: 0x0006F230
 public void DisableEffect(ImageEffectManager.ImageEffectType imageEffectType)
 {
     if (this._effects.ContainsKey(imageEffectType) && this._effectsParameters.ContainsKey(imageEffectType))
     {
         this._effects[imageEffectType].enabled = false;
         this._effectsParameters[imageEffectType].SetPermanentEnable(false);
         this._currentEffect = ImageEffectManager.ImageEffectType.None;
     }
 }
示例#3
0
 // Token: 0x06001362 RID: 4962 RVA: 0x0000D381 File Offset: 0x0000B581
 public void EnableEffect(ImageEffectManager.ImageEffectType imageEffectType, float time)
 {
     this.EnableEffect(imageEffectType, time, -1f);
 }
示例#4
0
 // Token: 0x06001361 RID: 4961 RVA: 0x0000D36E File Offset: 0x0000B56E
 public void EnableEffect(ImageEffectManager.ImageEffectType imageEffectType)
 {
     this.EnableEffect(imageEffectType, -1f, -1f);
 }
示例#5
0
 // Token: 0x0600135E RID: 4958 RVA: 0x0000D341 File Offset: 0x0000B541
 public void AddEffect(ImageEffectManager.ImageEffectType imageEffectType, MonoBehaviour monoBehaviour)
 {
     this._effects[imageEffectType]           = monoBehaviour;
     this._effectsParameters[imageEffectType] = new ImageEffectManager.ImageEffectParameters();
 }