コード例 #1
0
    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();
        }
    }
コード例 #2
0
 public void Load()
 {
     if (loadCandy)
     {
         string value = GameSaves.LoadValue(saveValueName);
         if (value.Length > 0)
         {
             m_candyCount   = int.Parse(value);
             scoreText.text = m_candyCount.ToString();
         }
     }
 }