コード例 #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();
    }
コード例 #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();
    }
コード例 #3
0
ファイル: ResultsArrow.cs プロジェクト: ErgonMagi/RIG-Project
 public void Clicked()
 {
     notificationMenu.ChangeMenu(isRightArrow);
 }