private void Start()
        {
            m_miniGame = MinigameManager.GetActive <mg_JetpackReboot>();
            m_odometer = m_miniGame.GameLogic.Odometer;
            Localizer localizer = null;

            if (Service.IsSet <Localizer>())
            {
                localizer = Service.Get <Localizer>();
            }
            m_distanceUnit = ((localizer == null) ? "m" : localizer.GetTokenTranslation("Activity.MiniGames.MetersDistance"));
            if (m_miniGame.PlayerStats.BestDistance == 0)
            {
                base.gameObject.SetActive(value: false);
                return;
            }
            Text[] componentsInChildren = base.gameObject.GetComponentsInChildren <Text>();
            Text[] array = componentsInChildren;
            foreach (Text text in array)
            {
                if (text.gameObject.name == "mg_jr_DistanceLabel")
                {
                    m_distanceLabel      = text;
                    m_distanceLabel.text = m_miniGame.PlayerStats.BestDistance + m_distanceUnit;
                }
                else if (text.gameObject.name == "mg_jr_SignTitle")
                {
                    m_signLabel      = text;
                    m_signLabel.text = ((localizer == null) ? "Longest Flight" : localizer.GetTokenTranslation("Activity.MiniGames.Flight"));
                }
            }
        }
 public void Init(mg_jr_GameData _balance, mg_jr_Odometer _odo)
 {
     m_gameBalance  = _balance;
     m_distanceData = _odo;
 }