Esempio n. 1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.tag == "Enemy" || collision.tag == "Interactable")
     {
         if (MyInteractable != null)
         {
             MyInteractable.StopInteract();
             MyInteractable = null;
         }
     }
 }
    public void Close()
    {
        pageIndex = 0;
        pages.Clear();
        canvasGroup.alpha          = 0;
        canvasGroup.blocksRaycasts = false;
        ClearButtons();

        if (MyInteractable != null)
        {
            MyInteractable.StopInteract();
        }

        MyInteractable = null;
    }