Beispiel #1
0
    //---------------------------------------------------------------
    void ChangeTextAfterSecond()
    {
        if (isDisplayTimeOut == false)
        {
            displayTime -= Time.deltaTime;
            //TODO replace statusToSetText with another flag as it could be change when
            //activating skill shot for example
            // When the "WAVE" UI Text display time is out
            if ((displayTime <= 0 && (statusToSetText == DISPLAY_TEXT.WAVE)) ||
                (displayTime <= 0 && (statusToSetText == DISPLAY_TEXT.CRITICAL_HIT)))
            {
                Debug.LogWarning("go true");
                SetText("");
                isDisplayTimeOut = true;
                //specialTextEnd = true;
                waveController.ResetIsWaveCleared();
                isChangingWave = false;
                displayTime    = maxDisplayTime;

                //turn on the next enemy wave display
                waveController.SetActiveWaveChild();
                //reposition the stage ball and push it as the previous wave
                ballSpawner.GetComponent <BallSpawner> ().ResetBallAtWaveStart();
                statusToSetText = DISPLAY_TEXT.NOTHING;
            }
            else if (displayTime <= 0)
            {
                SetText("");
                isDisplayTimeOut = true;
                displayTime      = maxDisplayTime;
            }
        }
    }
Beispiel #2
0
 //---------------------------------------------------------------
 public static void SetUITextStatusType(DISPLAY_TEXT textTypeToDisplay, string additionalText)
 {
     statusToSetText = textTypeToDisplay;
     otherTextValue  = additionalText;
 }