Пример #1
0
        public void GameOver(float score)
        {
            switch (_gameStatus)
            {
            case GameStatus.LeisureGame:
                break;

            case GameStatus.HighScoreGame:
#if UNITY_EDITOR
                Debug.Log("Send score: " + score.ToString(CultureInfo.InvariantCulture));
#endif
                _webConnector.ReportGame(score);
                break;

            case GameStatus.AcceptGame:
#if UNITY_EDITOR
                Debug.Log("Send score: " + score.ToString(CultureInfo.InvariantCulture));
#endif
                _webConnector.ReportGetGame(score);
                break;

            case GameStatus.FriendGame:
                break;

            case GameStatus.AcceptFriendGame:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }