void Start() { m_modIsEnabled = GetModEnabledState(); UIView v = UIView.GetAView(); m_needToRestartGamePanel = v.AddUIComponent(typeof(NeedToRestartGamePanel)) as NeedToRestartGamePanel; InvokeRepeating("CheckIfModGotActivated", 0, 2); }