private void startRecord(Touch touch)
 {
     if (touch.phase == TouchPhase.Began){
         rec = new UserActionRecord(touch.position);
     }
     if (touch.phase == TouchPhase.Moved || touch.phase == TouchPhase.Stationary){
         rec.checkNewPosition(touch.position);
     }
     if (touch.phase == TouchPhase.Ended){
         rec.checkNewPosition(touch.position);
         PlayerControlHolder.Instance.SwipeControl(rec.getResultAction());
     }
 }
 private void startRecord()
 {
     if (!mouseDown && Input.GetMouseButtonDown(0)){
         mouseDown = true;
         rec = new UserActionRecord(Input.mousePosition);
     }
     if (mouseDown){
         rec.checkNewPosition(Input.mousePosition);
     }
     if (mouseDown && Input.GetMouseButtonUp(0)){
         rec.checkNewPosition(Input.mousePosition);
         mouseDown = false;
         PlayerControlHolder.Instance.SwipeControl(rec.getResultAction());
     }
 }