Exemple #1
0
    public override void DrawGame()
    {
        gc.ClearScreen();

        switch (m_OnlineImageState)
        {
        case GcAvailability.NotAvailable:
            gc.DrawString("画像 DL失敗", k_LabelPos1);
            break;

        case GcAvailability.NotReady:
            gc.DrawString("画像 DL中...", k_LabelPos1);
            break;

        case GcAvailability.Ready:
            GcAssert.IsNotNull(m_OnlineImage);
            gc.DrawTexture(m_OnlineImage);
            gc.DrawString("画像 表示中", k_LabelPos1);
            break;
        }

        switch (m_OnlineSoundState)
        {
        case GcAvailability.NotAvailable:
            gc.DrawString("音声 DL失敗", k_LabelPos2);
            break;

        case GcAvailability.NotReady:
            gc.DrawString("音声 DL中...", k_LabelPos2);
            break;

        case GcAvailability.Ready:
            gc.DrawString("音声 再生中", k_LabelPos2);
            break;
        }
    }
Exemple #2
0
    public override void DrawGame()
    {
        if (m_State == State.Playing)
        {
            GcAssert.IsNotNull(m_Camera);
            if (!gc.DidUpdateCameraImageThisFrame(m_Camera))
            {
                return;
            }

            gc.ClearScreen();
            gc.DrawCameraImage(m_Camera);
            gc.SetColor(gc.ColorBlack);
            gc.DrawString(m_StateMessage, 12, 18);
            gc.SetColor(gc.ColorWhite);
            gc.DrawString(m_StateMessage, 10, 15);
        }
        else
        {
            gc.ClearScreen();
            gc.SetColor(gc.ColorBlack);
            gc.DrawString(m_StateMessage, 10, 15);
        }
    }