/// <summary>Updates the value of this property, only set fromSaveFile flag to true when called when called after loading it from a file</summary> public void UpdateAppointment(BankAppointmentType newAppointment, bool fromSaveFile = false) { if (appointment == newAppointment) { return; } appointment = newAppointment; if (!fromSaveFile) { SaveToFile(); } }
private void TryStartDialogue() { BankAppointmentType playerAppointment = appointmentProperty.Value; if (playerAppointment == BankAppointmentType.None) { //stop if no appointment was made return; } appointmentProperty.Restore(); switch (playerAppointment) { case BankAppointmentType.CreateAccount: MainCanvasManager.Instance.StartDialogue(appointmentpairs[playerAppointment].AppointmentDialogue, OnCreateAccountDialogueFinished); break; } }