Exemplo n.º 1
0
 private void OnGUI()
 {
     if (m_StartGameCoroutine != null)
     {
         ScaledGUI.Label("Waiting for player", TextAnchor.UpperCenter);
     }
 }
Exemplo n.º 2
0
 private void OnGUI()
 {
     if (Controller != null && Controller.IsGameOver && Controller.isLocalPlayer)
     {
         string text = m_Rank == 1 ? "Win" : "Lose";
         ScaledGUI.Label(text, TextAnchor.MiddleCenter, Vector2.zero, Color.white, 100);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// GUI表示
 /// </summary>
 private void OnGUI()
 {
     if (Game.Controller != null && Game.Controller.isLocalPlayer)
     {
         int chainCount = (Game as PPGame).PlayArea.ChainCount;
         if (chainCount > 0)
         {
             ScaledGUI.Label((chainCount + 1).ToString() + " Chain");
         }
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// GUI表示
 /// </summary>
 private void OnGUI()
 {
     if (Game.Controller != null && Game.Controller.isLocalPlayer)
     {
         ScaledGUI.Label(
             (Game as MDGame).PlayArea.ChainCount.ToString() + " Chain\n" +
             "Chain Receive " + (Game as MDGame).PlayArea.ChainReceiveTime.ToString("0.00") + "\n" +
             "IsValidPull " + (Game as MDGame).PlayArea.IsValidPull(m_CurrentRow) + "\n" +
             "PulledDropCount " + (Game as MDGame).PlayArea.GetPulledDropCount() + "\n" +
             "PushingDropCount " + (Game as MDGame).PlayArea.GetPushingDropCount());
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// GUI更新
 /// </summary>
 private void OnGUI()
 {
     // 過去ログ表示
     if (m_History != null && m_History.Count > 0)
     {
         StringBuilder sb = new StringBuilder();
         foreach (string str in m_History)
         {
             sb.Append(str);
         }
         ScaledGUI.Label(sb.ToString(), TextAnchor.UpperLeft, Vector2.zero, Color.white, 24);
     }
 }
Exemplo n.º 6
0
    private void OnGUI()
    {
        if (m_Game.Controller != null && m_Game.Controller.isLocalPlayer)
        {
            string next = "";
            if (m_NextTetrominoTypes.Count > 0)
            {
                switch (m_NextTetrominoTypes[0])
                {
                case 0: next = "S"; break;

                case 1: next = "Z"; break;

                case 2: next = "T"; break;

                case 3: next = "L"; break;

                case 4: next = "J"; break;

                case 5: next = "I"; break;

                case 6: next = "O"; break;
                }
            }
            ScaledGUI.Label(next);

            /*
             * for (int y = 0; y < m_Lines.Count; y++)
             * {
             *      for (int x = 0; x < m_Lines[y].Length; x++)
             *      {
             *              Vector3 pos = m_Lines[y][x].Position;
             *              pos.y = -pos.y;
             *              pos = Camera.main.WorldToScreenPoint(pos);
             *              GUI.Label(new Rect(pos.x, pos.y, 100, 100), m_Lines[y][x].AttachedPanel != null ? "full" : "empty");
             *      }
             * }
             */
        }
    }
Exemplo n.º 7
0
    protected void OnGUI()
    {
        string text = "";

        if (NetworkGameManager.Instance.PlayerCount > 0)
        {
            if (NetworkServer.active)
            {
                text += "Match created\n";
                text += "Waiting for player (" + NetworkGameManager.Instance.PlayerCount.ToString() + " / " + NetworkGameManager.Instance.matchSize.ToString() + ")\n";
            }
            else if (NetworkClient.active)
            {
                text += "Match joined\n";
            }
        }
        else if (m_MatchingCoroutine != null)
        {
            text += "Finding...";
        }
        ScaledGUI.Label(text, TextAnchor.MiddleCenter);
    }