コード例 #1
0
ファイル: ResultPopup.cs プロジェクト: GouravGoyal13/ARZoo
 private void OnEnable()
 {
     popupInAnim.Play();
     if (context is TicTacResult)
     {
         result = ((TicTacResult)context);
         if (result.State == TicTacResult.ResultState.DRAW)
         {
             WinMessageText.text = "Draw";
             ScoreText.text      = "";
         }
         else
         {
             WinMessageText.text = string.Format("{0} Won!", result.WinMessage);
             ScoreText.text      = string.Format("Score : {0}", result.Score);
         }
     }
 }
コード例 #2
0
 private void OnGameComplete(TicTacResult gameResult)
 {
     ResultPopup.context = gameResult;
     ResultPopup.gameObject.SetActive(true);
 }