/** 鼠标滚轮 */ 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); } }
/** 触摸 */ 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); } }
/** 鼠标 */ 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); } }