public void AddBall(int ballID) { for (int i = 0, length = m_BallIcons.Length; i < length; i++) { if (m_BallIcons[i].sprite == null) { m_BallIcons[i].sprite = Pools.BallIcons[ballID - 1]; if (i == length - 1) { iTween.FadeTo(m_BallIcons[i].gameObject, iTween.Hash("alpha", 1, "time", .5f, "oncomplete", "Combo", "oncompletetarget", gameObject)); } else { iTween.FadeTo(m_BallIcons[i].gameObject, 1, .5f); } break; } } if (!m_MarkPotted) { m_PlayerData.PottedCount++; m_MarkPotted = true; } m_PlayerData.combo++; GameStatistics.MarkMaxCombo(m_PlayerData.combo); }