public IEnumerator MoveCoroutine() { mapMoveController.levelManager.OnStartWalking(); yield return(new WaitUntil(() => mapMoveController.moveFinished == true)); confirmPanel.Activate(true); AssignDataToPanel(); if (mapMoveController.levelManager.playButton && mapMoveController.levelManager.playButton.gameObject.activeSelf) { mapMoveController.levelManager.OnStopWalking(confirmPanel); } else { confirmPanel.Activate(true); } clicked = false; }
public void OnStopWalking(ConfirmPanel confirmPanel) { playButton.interactable = true; playButton.onClick.RemoveAllListeners(); playButton.onClick.AddListener(() => confirmPanel.Activate(true)); }