示例#1
0
    public float EmitAbilityParticle(AbilityParticleSystem abilityPs, ParticleSystem.EmitParams emitParams, float scaling, Transform parent)
    {
        if (abilityPs == null)
        {
            return(0);
        }

        emitParams.applyShapeToPosition = true;

        abilityPs.Emit(emitParams, abilityPs.emitCount, scaling);
        return(abilityPs.waitUntilNextEmit);
    }
示例#2
0
    public float EmitAbilityParticle_Rotated(string abilityId, ParticleSystem.EmitParams emitParams, float scaling, float rotationAngle, Transform parent)
    {
        AbilityParticleSystem abilityPs = GetParticleSystem(abilityId);

        if (abilityPs == null)
        {
            return(0);
        }

        emitParams.applyShapeToPosition = true;

        abilityPs.Emit(emitParams, abilityPs.emitCount, scaling, rotationAngle, parent);
        return(abilityPs.waitUntilNextEmit);
    }