Beispiel #1
0
 private void DestroyLevelBuffEffect(LevelBuffType type)
 {
     Singleton <EffectManager> .Instance.TrySetDestroyUniqueIndexedEffectPattern(type.ToString());
 }
 public void AttachLevelBuffEffect(LevelBuffType levelBuffType, string effectPattern)
 {
     if (Singleton <StageManager> .Instance.GetPerpStage().rainController == null)
     {
         this._attachedLevelBuffEffect[(int)levelBuffType] = effectPattern;
         Singleton <EffectManager> .Instance.CreateUniqueIndexedEffectPattern(effectPattern, levelBuffType.ToString(), Singleton <LevelManager> .Instance.levelEntity);
     }
 }
Beispiel #3
0
        private void CreateLevelBuffEffect(LevelBuffType type, uint ownerID, int instancedAbilityID, int actionLocalID)
        {
            ApplyLevelBuff buff = this.LocateApplyLevelBuffConfig(ownerID, instancedAbilityID, actionLocalID);

            if ((buff != null) && !string.IsNullOrEmpty(buff.AttachLevelEffectPattern))
            {
                Singleton <EffectManager> .Instance.CreateUniqueIndexedEffectPattern(buff.AttachLevelEffectPattern, type.ToString(), Singleton <LevelManager> .Instance.levelEntity);
            }
        }