Exemplo n.º 1
0
    public void OpenNumericModal()
    {
        mModalParms[ModalCalculator.parmInitValue] = mCurVal;

        if (inputAnchor)
        {
            mModalParms[ModalSetPosition.parmScreenPoint] = (Vector2)inputAnchor.position;
        }
        else
        {
            mModalParms.Remove(ModalSetPosition.parmScreenPoint);
        }

        M8.UIModal.Manager.instance.ModalOpen(modal, mModalParms);
    }