예제 #1
0
        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));
            }
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="uMessageBox"></param>
 public void Hide(UBaseMessageBox uMessageBox)
 {
     StartCoroutine(workers[uMessageBox.message.messageType].hider(uMessageBox));
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="uMessageBox"></param>
 public void Showed(UBaseMessageBox uMessageBox)
 {
     StartCoroutine(IShowed(uMessageBox));
 }