public override void processDragGesture(Vector3 origMPWorld, Vector3 newMPWorld, GestureInput.DragType dragType, bool finished) { if (MenuManager.Open && !Managers.Menu.processDragGesture(origMPWorld, newMPWorld)) { //Drag the camera Managers.Camera.processDragGesture(origMPWorld, newMPWorld, finished); } }
public virtual void processDragGesture(Vector3 origMPWorld, Vector3 newMPWorld, GestureInput.DragType dragType, bool finished) { //If the player drags on Merky, if (dragType == GestureInput.DragType.DRAG_PLAYER) { //Activate the ForceLaunch ability Managers.Player.processDragGesture(origMPWorld, newMPWorld, finished); } else if (dragType == GestureInput.DragType.DRAG_CAMERA) { //Drag the camera Managers.Camera.processDragGesture(origMPWorld, newMPWorld, finished); } else { throw new System.ArgumentException("DragType must be a valid value! dragType: " + dragType); } }