public void Load() { string value = GameSaves.LoadValue(saveValueName); if (value.Length > 0) { m_nextLevel = byte.Parse(value); m_levelData[m_nextLevel - 1].upgrade.Invoke(); DrawLevel(); } }
public void Load() { if (loadCandy) { string value = GameSaves.LoadValue(saveValueName); if (value.Length > 0) { m_candyCount = int.Parse(value); scoreText.text = m_candyCount.ToString(); } } }