26 lines
403 B
C#
26 lines
403 B
C#
using UnityEngine;
|
|
|
|
namespace Cooldhands.UICursor.Example
|
|
{
|
|
public class CursorController : UICursorBehaviour
|
|
{
|
|
public Animator m_animator;
|
|
|
|
public override void OnClickableElementChanged()
|
|
{
|
|
if (m_animator != null)
|
|
{
|
|
_ = m_animator.isActiveAndEnabled;
|
|
}
|
|
}
|
|
|
|
public override void OnClick()
|
|
{
|
|
if (m_animator != null)
|
|
{
|
|
_ = m_animator.isActiveAndEnabled;
|
|
}
|
|
}
|
|
}
|
|
}
|