Beispiel #1
0
 public override void OnStart()
 {
     IsHouseFull = true;
     L_Actor_Seat[] seats = L_Actor_Seat.GetAllAeats();
     for (int i = 0; i < seats.Length; i++)
     {
         if (seats [i].IsEmpty)
         {
             IsHouseFull = false;
             return;
         }
     }
 }
Beispiel #2
0
        //
        public override void OnStart()
        {
            L_Actor_Seat[] seats = L_Actor_Seat.GetAllAeats();

            for (int i = 0; i < seats.Length; i++)
            {
                L_Actor_Seat seat = seats[i];
                if (seat.IsEmpty)
                {
                    L_Character_Drinker drinker = GetComponent <L_Character_Drinker> ();
                    drinker.SeatID = seat.ID;
                    GameEventMachine.SendEvent(GameEventID.Event_Drinker_FindSeat, seat.ID, drinker.ID);
                    return;
                }
            }
        }