// 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; }
public override void OnStart() { IsDoorFull = true; L_Actor_Door[] doors = L_Actor_Door.GetAllDoors(); for (int i = 0; i < doors.Length; i++) { if (doors [i].IsEmpty) { IsDoorFull = false; return; } } }
public override void OnStart() { L_Actor_Door door = L_ActorManager.It.ActorRoot.GetComponentInChildren <L_Actor_Door>(); L_CharacterData.CreateCharacter(0, door.EnterTran.position, door.EnterTran.rotation); }