コード例 #1
0
    void Update()
    {
        gameTime += Time.deltaTime;

        foreach (MessageEvent m in messageEvents)
        {
            if (!m.shown && m.timeUntilMessage <= gameTime)
            {
                m.shown = true;
                textController.ShowText(m.message, m.displayTime);
            }
        }

        if (!hasZoomed && timeBeforeZoom <= gameTime)
        {
            hasZoomed = true;
            camControl.SetTargetZoom();
        }

        CheckEndCondition();
    }