Ejemplo n.º 1
0
 //下岸
 public void GetOffCoast(string passenger_name, CoastController coastctrl)
 {
     for (int i = 0; i < coastctrl.coast.characters.Length; ++i)
     {
         if (coastctrl.coast.characters[i] != null &&
             coastctrl.coast.characters[i].character.Name == passenger_name)
         {
             coastctrl.coast.characters[i] = null;
         }
     }
 }
Ejemplo n.º 2
0
        //上岸
        public void GetOnCoast(CharacterController charactrl, CoastController coastctrl)
        {
            //船
            int index = coastctrl.GetEmptyIndex();

            coastctrl.coast.characters[index] = charactrl;
            //人物
            charactrl.character.Coast = coastctrl;
            charactrl.character.Role.transform.parent = null;
            charactrl.character.IsOnBoat = false;
        }
Ejemplo n.º 3
0
 public void GetOnCoast(CoastController coast)
 {
     character.Coast = coast;
     character.Role.transform.parent = null;
     character.IsOnBoat = false;
 }