Exemplo n.º 1
0
    public override void End()
    {
        switch (effCamera.type)
        {
        case 0:
            PeCameraImageEffect.ScreenMask(0, false);
            break;

        case 1:
            PeCameraImageEffect.SetDizzyStrength(0);
            break;

        case 2:
            PeCameraImageEffect.FlashlightExplode(0);
            break;

        case 3:
            PeCameraImageEffect.SetFoodPoisonStrength(0);
            break;

        case 4:
            PeCameraImageEffect.SetInjuredPoisonStrength(0);
            break;

        case 5:
            PeCameraImageEffect.SetGRVInfestStrength(0);
            break;
        }
    }
Exemplo n.º 2
0
    public override void Do()
    {
        if (null == entity)
        {
            return;
        }

        if (entity != MainPlayer.Instance.entity)
        {
            m_ElapseTime = effectTime;
            return;
        }
        m_ElapseTime = 0;
        switch (effCamera.type)
        {
        case 0:
            PeCameraImageEffect.ScreenMask(Mathf.RoundToInt(effectStrength), true, effectTime);
            break;

        case 1:
            PeCameraImageEffect.SetDizzyStrength(effCamera.value * effectStrength);
            break;

        case 2:
            PeCameraImageEffect.FlashlightExplode(effCamera.value * effectStrength);
            break;

        case 3:
            PeCameraImageEffect.SetFoodPoisonStrength(effCamera.value);
            break;

        case 4:
            PeCameraImageEffect.SetInjuredPoisonStrength(effCamera.value);
            break;

        case 5:
            PeCameraImageEffect.SetGRVInfestStrength(effCamera.value);
            break;
        }
    }