private void CHeckPlayerProgress() { if (player.transform.position.y / obstacles.interval > (m_process + 1)) { m_process++; score += m_xscore; scoreText.text = score.ToString(); obstacles.AddObstacke(m_process); } if (m_process > 0 && ((m_process % pickupDroprate) == 0)) { if (!m_DidDropPickUp) { m_DidDropPickUp = true; obstacles.AddsPickups(m_process); dempickup++; // Debug.Log("pick up duoc add" + dempickup); } } else { m_DidDropPickUp = false; } }