示例#1
0
 protected override void SetGearEventStateOne(uint stateOneID)
 {
     if (stateOneID == ID)
     {
         handler.RemoveFXs(fxID);
         base.SetGearEventStateOne(stateOneID);
     }
 }
 public void RemoveFx(int fxID)
 {
     if (sfxHandler)
     {
         sfxHandler.RemoveFXs(fxID);
     }
 }
示例#3
0
    public void RemoveSfx(int actionID)
    {
        List <uint> sfxs = null;

        sfxTimerIDDic.TryGetValue(actionID, out sfxs);
        if (sfxs == null)
        {
            return;
        }
        foreach (var item in sfxs)
        {
            FrameTimerHeap.DelTimer(item);
        }
        Dictionary <int, float> sfx = SkillAction.dataMap[actionID].sfx;

        if (sfx == null)
        {
            return;
        }
        SfxHandler cueHandler = theOwner.sfxHandler;

        foreach (var item in sfx)
        {
            if (cueHandler)
            {
                cueHandler.RemoveFXs(item.Key);
            }
        }
        sfxs.Clear();
    }
示例#4
0
    public void RemoveSfx(int actionID)
    {
        var sfxs = sfxTimerIDDic.GetValueOrDefault(actionID, new List <uint>());

        foreach (var item in sfxs)
        {
            FrameTimerHeap.DelTimer(item);
        }
        Dictionary <int, float> sfx = SkillAction.dataMap[actionID].sfx;

        if (sfx == null)
        {
            return;
        }
        SfxHandler cueHandler = theOwner.sfxHandler;

        foreach (var item in sfx)
        {
            if (item.Key < 1000)
            {
                StopUIFx(item.Key);
            }
            else
            {
                if (cueHandler)
                {
                    cueHandler.RemoveFXs(item.Key);
                }
            }
        }
        sfxs.Clear();
    }
示例#5
0
    protected void BurnUp()
    {
        sfxHandler.RemoveFXs(1102402);
        isBurning = false;

        if (this && gameObject)
        {
            var magma = gameObject.GetComponent <Magma>();
            if (magma != null)
            {
                magma.MagmaBurnUp();
            }
        }
    }
示例#6
0
 public void StopFX()
 {
     handler.RemoveFXs(m_fxID);
 }
示例#7
0
 protected void FoggyAbyssClose()
 {
     handler.RemoveFXs(6035);
     isOpen = false;
 }