feat: add public properties for UIParticleAttractor

close 
mob-sakai 2023-08-14 16:47:16 +09:00
parent 12b5aacf1d
commit 65770cadda
1 changed files with 12 additions and 0 deletions

View File

@ -36,6 +36,12 @@ namespace Coffee.UIExtensions
[SerializeField] [SerializeField]
private UnityEvent m_OnAttracted; private UnityEvent m_OnAttracted;
public float destinationRadius
{
get { return m_DestinationRadius; }
set { m_DestinationRadius = Mathf.Clamp(value, 0.1f, 10f); }
}
public float delay public float delay
{ {
get get
@ -72,6 +78,12 @@ namespace Coffee.UIExtensions
} }
} }
public UnityEvent onAttracted
{
get { return m_OnAttracted; }
set { m_OnAttracted = value; }
}
public ParticleSystem particleSystem public ParticleSystem particleSystem
{ {
get get