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