void TouchActions(string pAct, Vector3 mousePo)
    {
        Vector3 theV = muiCam.GetScreenPosition(mousePo, 0);

        switch (pAct)
        {
        case "Down":
            mTouch.TouchDown(theV);
            if (mLiaison != null)
            {
                mLiaison.TouchDown(theV);
            }
            break;

        case "Hold":
            mTouch.TouchHold(muiCam.GetScreenPosition(mousePo, 0));
            if (mLiaison != null)
            {
                mLiaison.TouchHold(theV);
            }
            break;

        case "Up":
            if (mLiaison != null)
            {
                mLiaison.TouchUp();
            }
            mTouch.TouchUp();
            break;
        }
//        foreach (CuUiManager man in arrMan) {
//            man.TouchAction (pAct, mousePo);
//        }
    }
示例#2
0
    void TouchActions(string pAct, Vector3 mousePo)
    {
        Vector3 theV = muiCam.GetScreenPosition(mousePo, 0);

        switch (pAct)
        {
        case "Down":
            mTouch.TouchDown(theV);
            if (mLiaison != null)
            {
                mLiaison.TouchDown(theV);
            }
            break;

        case "Hold":
            mTouch.TouchHold(muiCam.GetScreenPosition(mousePo, 0));
            if (mLiaison != null)
            {
                mLiaison.TouchHold(theV);
            }
            break;

        case "Up":
            if (mLiaison != null)
            {
                mLiaison.TouchUp();
            }
            mTouch.TouchUp();
            break;
        }
    }