using System; using System.Collections; using UnityEngine; using UnityEngine.UI; namespace DiamondArrow { public sealed partial class DiamondArrowGame { void BeginModal(string id) { CloseModal(); CurrentModal = id; modal = Node(root, "Modal " + id, 0, 0, 750, 1334); Stretch(modal); var shade = modal.gameObject.AddComponent(); shade.color = new Color(.01f, 0, .025f, .88f); } RectTransform Sheet(string title,float height=740,bool dismiss=true,string id=null) { BeginModal(id ?? title); if(dismiss){var b=modal.gameObject.AddComponent