Exemplo n.º 1
0
    /** 鼠标滚轮 */
    protected virtual void onMouseWheel(float wheel)
    {
        Scene scene = GameC.scene.getScene();

        //在ui上
        if (STouchControl.isTouchOnUI())
        {
            return;
        }

        if (scene != null && scene.isInit)
        {
            scene.camera.onMouseWheel(wheel);
        }
    }
Exemplo n.º 2
0
    /** 触摸 */
    protected virtual void onTouch(Touch touch, bool isDown)
    {
        Scene scene = GameC.scene.getScene();

        if (isDown)
        {
            //在ui上
            if (STouchControl.isTouchOnUI(touch.fingerId))
            {
                return;
            }
        }

        if (scene != null && scene.isInit)
        {
            scene.camera.onTouch(touch, isDown);
        }
    }
Exemplo n.º 3
0
    /** 鼠标 */
    protected virtual void onMouse(bool isDown)
    {
        Scene scene = GameC.scene.getScene();

        if (isDown)
        {
            //在ui上
            if (STouchControl.isTouchOnUI())
            {
                return;
            }
        }

        if (scene != null && scene.isInit)
        {
            scene.camera.onMouse(isDown);
        }
    }