Exemplo n.º 1
0
    public void ShortcutActivation()
    {
        PointerEventData Data = new PointerEventData(EventSystem.current);

        Data.position = mButton.transform.position;

        mButton.OnPointerClick(Data);
        mButton.OnPointerUp(Data);
        mButtonAnimator.OnPointerUp(Data);
    }