private void ShowResult(string playerName) { AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); builder.SetTitle("게임 종료").SetMessage($" {playerName} 님 우승").SetCloseTime(5f); builder.Build().Show(); }
private void ShowResultDraw() { AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); builder.SetTitle("게임 종료").SetMessage($" 무승부 입니다.").SetCloseTime(5f); builder.Build().Show(); }
private void ShowInterrupMessage(string msg) { AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); builder.SetTitle("게임 종료").SetMessage(msg).SetCloseTime(5f); builder.Build().Show(); }
public void Alert(string msg) { AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); builder.SetTitle("알림") .SetMessage(msg) .SetCloseTime(2f) .Build() .Show(); }
public void OnLoginFailed(string message) { isRunning = false; AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); builder.SetTitle("알림") .SetMessage(message) .SetBtn("닫기", null) .Build() .Show(); }
private void MakeAccountFailed(string message) { isRunning = false; AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); builder.SetTitle("알림") .SetMessage(message) .SetBtn("닫기", null) .Build() .Show(); }
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--; }
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; }
public void Alert(string msg, float time) { AlertDialog.AlertDialogBuilder builder = new AlertDialog.AlertDialogBuilder(); dialog = builder.SetTitle("알림").SetMessage(msg).SetCloseTime(time).Build(); dialog.Show(); }