i dont know whats wrong,the sentence keep wrong,help me
PlayerPrefs.GetInt (" playerScore3")>50 ? m_bActive[idx] =true : m_bActive =false ;
#pragma strict
var m_bActive : boolean[];
var m_GuiStageBtn : GUIStyle;
var m_texLocked : Texture2D;
var m_texActive : Texture2D;
PlayerPrefs.GetInt (" playerScore3");
m_bActive = new boolean[m_iLevelTotals];
for (idx = 1; idx < m_iLevelTotals; ++idx)
PlayerPrefs.GetInt (" playerScore3")>50 ? m_bActive[idx] =true : m_bActive =false ;
m_bActive[0] = true;
// col_1
for ( i = 0; i < 13; i += 4)
if (!m_bEasyActive[i])
m_GuiStageBtn.normal.background = m_texLocked;
else
m_GuiStageBtn.normal.background = m_texActive;
if (GUI.Button(Rect(81, 29 * i + 220 , 57, 52), "", m_GuiStageBtn))
{
if (!m_bEasyActive[i])
return;
if (m_bEffectActive)
audio.PlayOneShot(g_ButtonDownClip);
g_iCurrentLevel = i + 1;
LoadSelectLevel(g_iCurrentLevel);
}
↧