Exemplo n.º 1
0
 protected override void SetGearEventStateOne(uint stateOneID)
 {
     if (stateOneID == ID)
     {
         handler.RemoveFXs(fxID);
         base.SetGearEventStateOne(stateOneID);
     }
 }
Exemplo n.º 2
0
 public void RemoveFx(int fxID)
 {
     if (sfxHandler)
     {
         sfxHandler.RemoveFXs(fxID);
     }
 }
Exemplo n.º 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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 5
0
    protected void BurnUp()
    {
        sfxHandler.RemoveFXs(1102402);
        isBurning = false;

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