/// <summary> /// 2. ConnectAmond /// </summary> public void ConnectAmond() { GameScoreDto result = AmondPlugin.GetInstance().ConnectAmond(); textResult.text = "2. ConnectAmond: " + result; buttonConnectAmond.SetActive(false); buttonStartWatchAd.SetActive(true); buttonLeaderBoard.SetActive(true); }
/// <summary> /// 6. EndGame /// </summary> public void EndGame() { if (_inputScoreField.text == "") { _inputScoreField.text = "1004"; } int score = int.Parse(_inputScoreField.text); GameScoreDto result = AmondPlugin.GetInstance().EndGame(score); if (result != null) { textResult.text = "6. Rank: " + result.rank + "\n Best score: " + result.score; inputScore.SetActive(false); buttonEndGame.SetActive(false); buttonStartWatchAd.SetActive(true); } else { textResult.text = "Failed EndGame()"; } }