private void leftTabs_DocumentTree_AfterSelect(object sender, TreeViewEventArgs e) { try { Hashtable idPack = e.Node.Tag as Hashtable; NodeClicker clicker = idPack["ClickHandler"] as NodeClicker; leftTabs_Properties.SelectedObject = idPack["Data"]; clicker(idPack["Data"]); } catch { } }
// Start is called before the first frame update void Start() { clickedNodes = 0; nC = new NodeClicker(this); circleMap = new Dictionary <Vector2Int, GameObject>(); activatedCircleMap = new Dictionary <Vector2Int, GameObject>(); Vector2Int vv = Vector2Int.zero; for (int i = 0; i < 9; i++) { Vector2Int v = new Vector2Int(circularArrayX[i], circularArrayY[i]); circleMap.Add(v, null); circle.InstantiateAsync(distance * new Vector3(v.x, v.y), Quaternion.identity).Completed += (AsyncOperationHandle <GameObject> a) => { EndGenerateNode(a, Vector2Int.zero, v); }; } }