diff --git a/Assets/Scripts/ProfileMenu.cs b/Assets/Scripts/ProfileMenu.cs index 1312c10..6642877 100644 --- a/Assets/Scripts/ProfileMenu.cs +++ b/Assets/Scripts/ProfileMenu.cs @@ -1,8 +1,6 @@ -using System; using System.Linq; using System.Numerics; -using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using TMPro; @@ -38,6 +36,8 @@ public class ProfileMenu : MonoBehaviour [SerializeField] private bool canVote = true; + private GameObject popupObject; + void Awake() { @@ -282,6 +282,7 @@ public class ProfileMenu : MonoBehaviour void VotePost(BigInteger postId, TMP_Text entryLikesCount, TMP_Text entryLikesTexture) { var popup = Instantiate(voteOverlay, voteOverlay.transform.parent); + popupObject = popup; popup.SetActive(true); var exitButton = popup.transform.GetChild(0).GetChild(0).GetComponent