private IEnumerator ShowAchievementRoutine(LegacySystem.Achievement a) { yield return(new WaitUntil(() => !ViewHolder.activeInHierarchy)); SoundController.PlayStinger(SoundBank.Stinger.AchievementUnlocked); ViewHolder.SetActive(true); Image.sprite = a.Image; AchievementName.text = a.Name; yield return(new WaitForSeconds(Showtime)); ViewHolder.SetActive(false); }
public static void ShowAchievement(LegacySystem.Achievement a) { Instance.StartCoroutine(Instance.ShowAchievementRoutine(a)); }
public void SetupAchievement(LegacySystem.Achievement a) { Achievement = a; AchievementImage.sprite = a.Image; AchievementImage.color = a.Unlocked ? UnlockedColor : LockedColor; }