Ejemplo n.º 1
0
 /// <summary>
 /// 刪除該席位的角色。
 /// </summary>
 public void DeleteCharacter(int seatIndex)
 {
     seatingPlan.seats[seatIndex].role           = null;
     seatingPlan.seats[seatIndex].role.seatIndex = -1;
     Save();
     OnSeatDeleted?.Invoke(seatIndex);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 刪除座位。
 /// </summary>
 public void DeleteSeat(int seatIndex)
 {
     seatingPlan.seats.RemoveAt(seatIndex);
     OnSeatDeleted?.Invoke(seatIndex);
     AutoSeatPosAndSave();
 }