Example #1
0
    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();
    }
Example #2
0
    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();
    }
Example #3
0
 public void Clicked()
 {
     notificationMenu.ChangeMenu(isRightArrow);
 }