Exemplo n.º 1
0
        /// <summary>
        /// Button event
        /// </summary>
        public void BTN_SaveData()
        {
            // Update the score value
            m_CustomLobbyData.PlayerLimit = m_PlayerScaler.scaleValue;
            m_CustomLobbyData.EnemyLimit  = m_EnemyScaler.scaleValue;
            m_DifficultyData.Difficulty   = m_DifficultyScaler.scaleValue;

            // Save the data
            m_LobbyDataFile.Save(m_CustomLobbyData);
            m_DifficultyDataFile.Save(m_DifficultyData);
        }