예제 #1
0
    protected virtual void OnDisable()
    {
        GameManager.uiSendoUsadaEvent -= OnMouseExit;

        if (pointerIn)
        {
            CursorInfos.SetCursorBase();
        }
    }
예제 #2
0
    //[Header("Cursor Base")]
    //public Texture2D cursorImage;
    //[SerializeField] Vector2 offset = Vector2.zero;

    //[Header("Cursor Iterativo")]
    //public Texture2D select;
    //public CursorMode curmode = CursorMode.ForceSoftware;
    //public Vector2 hotspot = Vector2.zero;

    private void Awake()
    {
#if UNITY_EDITOR
        if (instance != null)
        {
            Debug.Log("Tem mais de um CursorInfos");
        }
#endif

        instance = this;
    }
예제 #3
0
    public virtual void OnPointerExit(PointerEventData eventData)
    {
        pointerIn = false;

        CursorInfos.SetCursorBase();
    }
예제 #4
0
    //Para UI.
    public virtual void OnPointerEnter(PointerEventData eventData)
    {
        pointerIn = true;

        CursorInfos.SetCursorInterativo();
    }
예제 #5
0
    protected virtual void MouseOut()
    {
        pointerIn = false;

        CursorInfos.SetCursorBase();
    }
예제 #6
0
    protected virtual void MouseIn()
    {
        pointerIn = true;

        CursorInfos.SetCursorInterativo();
    }