Beispiel #1
0
    public void ActivateItemCanvas(GameObject toShowcase, ItemData data)
    {
        inMenu = true;
        showcaseCamera.SetActive(true);
        examineItemCanvas.SetActive(true);
        rateButton.SetActive(false);
        lastObjectChecked = toShowcase;
        if (!GameManager.Instance.murderMode && data.rambling != null && data.rambling.Length > 0)
        {
            RamblingText rt = examineItemCanvas.GetComponentInChildren <RamblingText>(true);
            rt.currentRambling = data.rambling;
            rtGO.SetActive(true);
        }

        TeleportBehindYou tp = toShowcase.GetComponent <TeleportBehindYou>();

        if (tp != null)
        {
            tp.canTeleport = true;
        }

        if (!GameManager.Instance.murderMode)
        {
            ValueHandler.Instance.PreviewValue(data.values);
        }
        showcase.SetNewShowcase(toShowcase, data);
    }
Beispiel #2
0
 public void TurnOffItemCanvas()
 {
     inMenu = false;
     showcaseCamera.SetActive(false);
     examineItemCanvas.SetActive(false);
     rateButton.SetActive(true);
     rtGO.SetActive(false);
     if (!GameManager.Instance.murderMode)
     {
         TeleportBehindYou tp  = null;
         GameObject        tmp = GameObject.Find("Anime Block");
         ValueHandler.Instance.TogglePreview(false);
         if (tmp != null)
         {
             tp = tmp.GetComponent <TeleportBehindYou>();
             tp.tryTeleport();
         }
     }
 }