private void Refresh() { if (!Object.op_Inequality((Object)MonoSingleton <GameManager> .Instance, (Object)null)) { return; } bool flag1 = false; bool flag2 = true; foreach (TrophyParam trophyParam in ChallengeMission.GetRootTrophiesSortedByPriority()) { if (!ChallengeMission.GetTrophyCounter(trophyParam).IsEnded) { if (this.IsNotReceiveRewards(trophyParam)) { flag1 = true; } flag2 = false; break; } } this.Badge.SetActive(flag1); ((Component)this).get_gameObject().SetActive(!flag2); if (flag2) { return; } FlowNode_GameObject.ActivateOutputLinks((Component)this, 10); }