海淀天下城电子沙盘单机版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
923 B

4 years ago
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;
}
/// <summary>
/// 增大压力
/// </summary>
public void Increase(float weight)
{
Up(weight);
}
/// <summary>
/// 减小压力
/// </summary>
public void Decrease(float weight)
{
Down(weight);
}
/// <summary>
/// 获取粒子大小(当前值)
/// </summary>
public float GetScaleValue()
{
return Scale;
}
/// <summary>
/// 设置粒子大小
/// </summary>
/// <param name="value"></param>
public void SetScaleValue(float value)
{
SetScale(value);
}
}