void OnTriggerEnter(Collider collider)
 {
     if (collider.gameObject.tag == "Ship")
     {
         ShipMove shipMove = collider.gameObject.GetComponent <ShipMove>();
         if (gameObject.tag == "Inner" && shipMove.indexWP == index - 1)
         {
             shipMove.startRotate(rotatePoint, direction);
         }
         else if (gameObject.tag == "Outer" && shipMove.indexWP == index - 1)
         {
             shipMove.setRotNorm(true);
             shipMove.indexWP++;
             shipMove.stopRotate(transform.forward);
         }
         else if (gameObject.tag == "Finish")
         {
             shipMove.finish = true;
             GameObject.Find("SceneController").GetComponent <SceneControllet_RunnerScene>().finish();
         }
         else if (gameObject.tag == "Warning")
         {
             shipMove.setRotNorm(false);
         }
     }
 }