public void Clicked() { int repGained = 0; List <Notification> auditionResultList = auditionResultNotifications.GetNotifications(); foreach (Notification n in auditionResultList) { if (n.isPassed()) { repGained += n.getMovie().getAuditionRepReward(); } } Player.Instance.AddReputation(repGained); NotificationManager.Instance.RemoveNotifications(auditionResultList); auditionResultNotifications.emptyNotifications(); if (movieResultNotifications.hasNotifications()) { notificationMenu.ChangeMenu(true); } else { NotificationManager.Instance.hideNotifications(); } GameController.Instance.RefreshActors(); }
public IEnumerator closeMenuAfterWait(float waitTime) { yield return(new WaitForSeconds(waitTime)); closing = false; movieResultNotifications.emptyNotifications(); if (auditionResultNotifications.hasNotifications()) { notificationMenu.ChangeMenu(false); } else { NotificationManager.Instance.hideNotifications(); } GameController.Instance.RefreshActors(); }
public void Clicked() { notificationMenu.ChangeMenu(isRightArrow); }