Ejemplo n.º 1
0
        private void ShowResult(string playerName)
        {
            AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();

            builder.SetTitle("게임 종료").SetMessage($" {playerName} 님 우승").SetCloseTime(5f);
            builder.Build().Show();
        }
Ejemplo n.º 2
0
        private void ShowResultDraw()
        {
            AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();

            builder.SetTitle("게임 종료").SetMessage($" 무승부 입니다.").SetCloseTime(5f);
            builder.Build().Show();
        }
Ejemplo n.º 3
0
        private void ShowInterrupMessage(string msg)
        {
            AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();

            builder.SetTitle("게임 종료").SetMessage(msg).SetCloseTime(5f);
            builder.Build().Show();
        }
Ejemplo n.º 4
0
 public void Alert(string msg)
 {
     AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
     builder.SetTitle("알림")
     .SetMessage(msg)
     .SetCloseTime(2f)
     .Build()
     .Show();
 }
Ejemplo n.º 5
0
 public void OnLoginFailed(string message)
 {
     isRunning = false;
     AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
     builder.SetTitle("알림")
     .SetMessage(message)
     .SetBtn("닫기", null)
     .Build()
     .Show();
 }
Ejemplo n.º 6
0
 private void MakeAccountFailed(string message)
 {
     isRunning = false;
     AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
     builder.SetTitle("알림")
     .SetMessage(message)
     .SetBtn("닫기", null)
     .Build()
     .Show();
 }
Ejemplo n.º 7
0
        public void RightAnswer(string sender)
        {
            //if (answerNum < 1) return;
            int drwaingPoint = answerPoint / (int)(turnTime / gameTime);

            mainUI.PlayerGetScore(sender, answerPoint);
            mainUI.PlayerGetScore(currentPlayer, drwaingPoint);

            AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
            dialog = builder.SetTitle("정답 알림").SetMessage($"{sender}님 정답 {answerPoint}점 획득 \n\n" +
                                                          $"문제의 출제자인 {currentPlayer}님 {drwaingPoint}점 획득")
                     .SetCloseTime(3f)
                     .Build();
            dialog.Show();
            answerNum--;
        }
Ejemplo n.º 8
0
        public void TurnChange(string name)
        {
            bool isMyturn = PhotonNetwork.NickName.Equals(name);

            currentPlayer = name;

            mainUI.TurnChange(name, isMyturn);
            RemoveMouseTracker();

            if (isMyturn)
            {
                PhotonNetwork.Instantiate("Prefabs/MouseTracker", Vector3.zero, Quaternion.identity);
                mainUI.SetQuizWord(true, quizWord);
                //PhotonNetwork.Instantiate("Prefabs/MouseTracker", Vector3.zero, Quaternion.identity);
            }

            AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
            dialog = builder.SetTitle("턴 변경").SetMessage($"{name} 님 턴").SetCloseTime(2f).Build();
            dialog.Show();

            answerNum = maxAnswer;
        }
Ejemplo n.º 9
0
 public void Alert(string msg, float time)
 {
     AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder();
     dialog = builder.SetTitle("알림").SetMessage(msg).SetCloseTime(time).Build();
     dialog.Show();
 }