예제 #1
0
 public void CheckForExit()
 {
     if (shouldWaitForConfirmation)
     {
         //Go to the zoom detail
         ZoomDetail.ShowZoomDetail();
         shouldWaitForConfirmation = false;
     }
     else
     {
         StartCoroutine(ChangeLevel());
     }
 }
예제 #2
0
    /// <summary>
    /// Shows the resource, displaying the first page if not specified and moving the player to the "Interest" point
    /// </summary>
    public void Show(int ShowPage = 0)
    {
        //Has to be first... if not, the internal IEnumerator from the yield will not run (as its deactivated)
        UI.SetActive(true);

        //Show the page if valid, if not, fallback to first page
        if (!GoToPage(ShowPage))
        {
            GoToPage(0);
        }

        //Show the detail zoom, which will trigger the movement and all
        DetailZoom.ShowZoomDetail();

        //Invoke the event
        OnShownEvent.Invoke();
        bShown = true;
    }