public void Init(AchievementsUI ui, Achievement achievement) { this.ui = ui; this.achievement = achievement; image.sprite = achievement.image; Color c = Color.white; if (achievement.ready) { ready.gameObject.SetActive(true); unready.gameObject.SetActive(false); c.a = 1; image.color = c; } else { ready.gameObject.SetActive(false); unready.gameObject.SetActive(false); c.a = 0.35f; image.color = c; } }
private void GoBackClick(UIMouseEvent evt, UIElement listeningElement) { Main.menuMode = 0; AchievementsUI.Close(); }
public override void OnClick() { IngameOptions.Close(); AchievementsUI.OpenAndGoto(_achievement); }