public zyzCharacterController offBoat(string passenger_name)
 {
     for (int i = 0; i < passenger.Length; i++)
     {
         if (passenger[i] != null && passenger[i].getName() == passenger_name)
         {
             zyzCharacterController charactorController = passenger[i];
             passenger[i] = null;
             return(charactorController);
         }
     }
     return(null);
 }
        public zyzCharacterController offCoast(string passenger_name)
        {   //
            for (int i = 0; i < passengers.Length; i++)
            {
                if (passengers[i] != null && passengers[i].getName() == passenger_name)
                {
                    zyzCharacterController charactorController = passengers[i];
                    Debug.Log(i + " off Coast");
                    passengers[i] = null;
                    Debug.Log(passengers[i] == null);
                    return(charactorController);
                }
            }

            return(null);
        }
        public void toBoat(zyzCharacterController characterController)
        {
            int index = getEmptyIndex();

            passenger[index] = characterController;
        }
 public void toCoast(zyzCharacterController characterController)
 {
     passengers[getEmptyIndex()] = characterController;
 }