public void HandleOnSave(Action act) { if (_Hero.Instance.IsEdited) { if (_Hero.Instance.IsNew) { Debug.Log("Is Edited & Is New"); popWindow.OnShow(act); _Hero.Instance.SaveToFactory(null, true); } else { Debug.Log("Is Edited & Is Not New"); alertWindow.OnShow(act); } } else { Debug.Log("Is Not Edited"); if (act != null) { act(); } } }