예제 #1
0
 //上船的动作
 public void moveOnBoat(Vector3 pos, int boatStatus, Vector3 relativeMove)
 {
     place  = "boat";
     onBoat = true;
     if (boatStatus == 0)
     {
         movescript.Move(frontmiddle1);
         movescript.Move(frontmiddle2);
     }
     else
     {
         movescript.Move(backmiddle1);
         movescript.Move(backmiddle2);
     }
     movescript.Move(pos + relativeMove);
 }
예제 #2
0
 //上船的动作,不进行检查
 public void moveOnBoat(Vector3 pos, int boatStatus, Vector3 relativeMove)//type为在船前或船后
 {
     place = "boat";
     //Debug.Log("moveOnBoat");
     onBoat = true;
     if (boatStatus == 0)
     {
         movescript.Move(frontmiddle1);
         movescript.Move(frontmiddle2);
     }
     else
     {
         movescript.Move(backmiddle1);
         movescript.Move(backmiddle2);
     }
     movescript.Move(pos + relativeMove);
 }
예제 #3
0
        public void move()
        {
            if (frontCharacter == null && backCharacter == null)
            {
                return;
            }

            if (boatStatus == 0)
            {
                boatStatus = 1;
                movescript.Move(new Vector3(8, 0, 0));
            }
            else
            {
                boatStatus = 0;
                movescript.Move(new Vector3(4, 0, 0));
            }
        }