Example #1
0
    private IEnumerator SearchWindowWaiting()
    {
        int dotNumber = 0;
        SearchResultEntry infoEntry = resultEntries[0];

        infoEntry.gameObject.SetActive(true);
        while (isWaitingResults)
        {
            dotNumber += 1;
            if (dotNumber == 10)
            {
                dotNumber = 0;
            }
            string waitingInfo = "Searching." + new string('.', dotNumber);
            infoEntry.SetSimpleContent(waitingInfo);
            yield return(new WaitForSeconds(0.2f));
        }
    }