IEnumerator IShowed(UBaseMessageBox uMessageBox) { yield return(new WaitForSeconds(1)); if (uMessageBox.message.Buttons.Length > 0 && uMessageBox.rect.Contains(new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y))) { StartCoroutine(workers[uMessageBox.message.messageType].showed(uMessageBox)); } else { StartCoroutine(workers[uMessageBox.message.messageType].hider(uMessageBox)); } }
/// <summary> /// /// </summary> /// <param name="uMessageBox"></param> public void Hide(UBaseMessageBox uMessageBox) { StartCoroutine(workers[uMessageBox.message.messageType].hider(uMessageBox)); }
/// <summary> /// /// </summary> /// <param name="uMessageBox"></param> public void Showed(UBaseMessageBox uMessageBox) { StartCoroutine(IShowed(uMessageBox)); }