using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UI; public class PopupController : MonoBehaviour { public Transform PopupPanel; public float offset; public int side; public UIHandle Owner; GameObject ButtonPrefab; public Dictionary> ConditionalButtons = new Dictionary>(); public void AddButton(string name, System.Action callback) { Button b = Instantiate(ButtonPrefab, PopupPanel).GetComponent