コード例 #1
0
ファイル: SelectLevel.cs プロジェクト: ALEX-WHISPER/GP_Echo
 private void UpdateLevelImage(SelectingLevel curLevelState)
 {
     if (curLevelState == SelectingLevel.LEVEL_0)
     {
         GetComponent <Image>().sprite = (LanguageManager.lanInstance.GetLanguageIfCN()) ? levelSprites[0] : levelSprites_English[0];
     }
     else if (curLevelState == SelectingLevel.LEVEL_1)
     {
         GetComponent <Image>().sprite = (LanguageManager.lanInstance.GetLanguageIfCN()) ? levelSprites[1] : levelSprites_English[1];
     }
     else if (curLevelState == SelectingLevel.LEVEL_2)
     {
         GetComponent <Image>().sprite = (LanguageManager.lanInstance.GetLanguageIfCN()) ? levelSprites[2] : levelSprites_English[2];
     }
 }
コード例 #2
0
ファイル: SelectLevel.cs プロジェクト: ALEX-WHISPER/GP_Echo
    public void LastPage()
    {
        GetComponent <AudioSource>().Play();

        if (curLevel == SelectingLevel.LEVEL_0)
        {
            curLevel = SelectingLevel.LEVEL_2;
        }
        else if (curLevel == SelectingLevel.LEVEL_2)
        {
            curLevel = SelectingLevel.LEVEL_1;
        }
        else if (curLevel == SelectingLevel.LEVEL_1)
        {
            curLevel = SelectingLevel.LEVEL_0;
        }
        UpdateLevelImage(curLevel);
    }