public void OnDeleteConfirm() { //Handler.Instance.PhoneData.RemoveContact(contact); ContactManager.RemoveContact(contact); PhoneBook.Instance.CurrentState = ScreenState.MainMenu; confirmDeleteWindow.HideObject(); EnableDiableButtons(true); }
private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { if (lastMover != null) { lastMover.HideObject(); } EnableDisableButtons(true); warningWindow.HideObject(); UpdateScreen(); } }