feat: add public properties for UIParticleAttractor
close #253
parent
12b5aacf1d
commit
65770cadda
|
@ -36,6 +36,12 @@ namespace Coffee.UIExtensions
|
|||
[SerializeField]
|
||||
private UnityEvent m_OnAttracted;
|
||||
|
||||
public float destinationRadius
|
||||
{
|
||||
get { return m_DestinationRadius; }
|
||||
set { m_DestinationRadius = Mathf.Clamp(value, 0.1f, 10f); }
|
||||
}
|
||||
|
||||
public float delay
|
||||
{
|
||||
get
|
||||
|
@ -72,6 +78,12 @@ namespace Coffee.UIExtensions
|
|||
}
|
||||
}
|
||||
|
||||
public UnityEvent onAttracted
|
||||
{
|
||||
get { return m_OnAttracted; }
|
||||
set { m_OnAttracted = value; }
|
||||
}
|
||||
|
||||
public ParticleSystem particleSystem
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Reference in New Issue