Exemplo n.º 1
0
 public MyCharacterController GetOffBoat(string passenger_name)      //下船
 {
     for (int i = 0; i < passenger.Length; i++)
     {
         if (passenger[i] != null && passenger[i].getName() == passenger_name)
         {
             MyCharacterController charactorCtrl = passenger[i];
             passenger[i] = null;
             return(charactorCtrl);
         }
     }
     Debug.Log("Cant find passenger in boat: " + passenger_name);
     return(null);
 }
        public void getOnCoast(MyCharacterController characterCtrl)             //角色上岸
        {
            int index = getEmptyIndex();

            passengerPlaner[index] = characterCtrl;
        }
Exemplo n.º 3
0
        public void GetOnBoat(MyCharacterController characterCtrl)      //上船
        {
            int index = getEmptyIndex();

            passenger[index] = characterCtrl;
        }