コード例 #1
0
        public SingleRoundScores <T> StartNewRound()
        {
            var singleRoundScores = new SingleRoundScores <T>();

            roundScores.Add(singleRoundScores);
            return(singleRoundScores);
        }
コード例 #2
0
        void Awake()
        {
            // Setting up scoring resources
            currentRoundScores = PlayersState.INSTANCE.gameScores.StartNewRound();
            PlayersState.INSTANCE.gameScoresAccumulator = (acc, current) => SimpleScore.Accumulate((SimpleScore)acc, (SimpleScore)current);

            AFEventManager.INSTANCE.AddListener(this);
            freeForAllSettings = (FreeForAllGameSettings)GameSettingsState.INSTANCE.GameModeSettings;
            Debug.Log("pointsToWin:" + freeForAllSettings.MaxScore);
            maxScore = freeForAllSettings.MaxScore;
        }