public void OnUIHide(GameObject canvasToDisable, CustomFunctionDelegate customFunc = null) { canvasToDisable.SetActive(false); CanvasUnpaused?.Invoke(); customFunc?.Invoke(); }
public void OnUIShow(GameObject canvasToEnable, CustomFunctionDelegate customFunc = null) { canvasToEnable.SetActive(true); CanvasPaused?.Invoke(); customFunc?.Invoke(); }