using System.Collections; using System.Collections.Generic; using UnityEngine; public class ZDSPParticle : ParticleControl { protected override void Init() { base.Init(); UseGravityModifier = false; UseSpeed = false; scaleMin = 0.1f; scaleMax = 4f; ScaleSpeed = 0.4f; } /// /// 增大压力 /// public void Increase(float weight) { Up(weight); } /// /// 减小压力 /// public void Decrease(float weight) { Down(weight); } /// /// 获取粒子大小(当前值) /// public float GetScaleValue() { return Scale; } /// /// 设置粒子大小 /// /// public void SetScaleValue(float value) { SetScale(value); } }