示例#1
0
    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);
    }
示例#2
0
 public static void ShowAchievement(LegacySystem.Achievement a)
 {
     Instance.StartCoroutine(Instance.ShowAchievementRoutine(a));
 }
示例#3
0
 public void SetupAchievement(LegacySystem.Achievement a)
 {
     Achievement             = a;
     AchievementImage.sprite = a.Image;
     AchievementImage.color  = a.Unlocked ? UnlockedColor : LockedColor;
 }