コード例 #1
0
        IEnumerator CreateTickerTape(string msg)
        {
            GameObject display;

            if (!isTicking)
            {
                TextFileUtility.WriteString(pathToSavedMessages, msg);

                isTicking = true;
                display   = Instantiate(DisplayPrefab, gameObject.transform);
                display.transform.SetAsFirstSibling();

                display.GetComponent <TickerDisplay>().SetWidthAndHeight(ScreenWidthAndHeight);

                yield return(new WaitForFixedUpdate());

                yield return(display.GetComponent <TickerDisplay>().StartCoroutine("TickerTheTape", new TapeData(msg, true)));

                isTicking = false;
            }
            yield break;
        }