public void Clicked() { if (!closing) { closing = true; int currencyEarned = 0; List <MoviesCompletedNotification> notiSlots = movieResultNotifications.getNotificationSlots(); foreach (MoviesCompletedNotification notificationSlot in notiSlots) { Actor a = notificationSlot.getActor(); Movie m = notificationSlot.getMovie(); if (a != null) { a.addExperience((float)m.getMovieXPReward()); notificationSlot.addExperience((float)m.getMovieXPReward()); currencyEarned += notificationSlot.getMovie().getAuditionRepReward(); } } NotificationManager.Instance.RemoveNotifications(movieResultNotifications.GetNotifications()); Player.Instance.addMoney(currencyEarned); StartCoroutine(closeMenuAfterWait(1.5f)); } }
public void Clicked() { int currencyGained = 0; List <Notification> auditionResultList = movieResultNotifications.GetNotifications(); foreach (Notification n in auditionResultList) { currencyGained += n.getMovie().getMovieCoinReward(); } Player.Instance.addMoney(currencyGained); NotificationManager.Instance.hideNotifications(); }