Beispiel #1
0
    private void UpdateMouseClick()
    {
        if (InputUtils.IsLeftClickOnCollider(m_tileCollider))
        {
            BlockInput();

            m_tileImageAnimator.SetTrigger(MOUSE_CLICK);
            m_tileNameAnimator.SetTrigger(MOUSE_CLICK);
            m_tileHoverAnimator.SetTrigger(MOUSE_CLICK);

            OnClickCb.Invoke(this);
        }
    }
 private void OnSelected()
 {
     m_imageAnimator.SetTrigger(MOUSE_CLICK);
     OnClickCb.Invoke(this);
 }