Exemplo n.º 1
0
        /// <summary>
        /// 付钱
        /// </summary>
        public virtual void Pay(int cash)
        {
            L_Actor_Seat seat = L_ActorManager.It.Find <L_Actor_Seat> (m_SeatID);
            L_Item       item = L_ItemData.CreateItem("Cash", seat.WinePos.position, seat.WinePos.rotation);

            item.GetAttribute("money").Value = cash;

            GameEventMachine.SendEvent(GameEventID.Event_Drinker_Pay, gameObject, cash);
        }
Exemplo n.º 2
0
        //
        public override void OnStart()
        {
            drinker = gameObject.GetComponent <L_Character_Drinker> ();
            seat    = L_ActorManager.It.Find <L_Actor_Seat> (drinker.SeatID);
            GameEventMachine.SendEvent(GameEventID.Event_Drinker_LeaveSeat, drinker.SeatID, drinker.ID);

            L_Actor_Door door = L_ActorManager.It.ActorRoot.GetComponentInChildren <L_Actor_Door>();

            drinker.MoveTarget = door.ExitTran;
        }
Exemplo n.º 3
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;
         }
     }
 }
Exemplo n.º 4
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;
                }
            }
        }