using Adam; using HUD; using System.Collections; using System.Collections.Generic; using UnityEngine; //============================================================ //支持中文,文件使用UTF-8编码 //@author YangHua //@create 20230531 //@company Adam // //@description: //============================================================ namespace Focus { public class ThreeDUIClick : MonoBehaviour { public HUDController hudController; // Use this for initialization private void Start() { for (int i = 0; i < hudController.modelInformations.Count; i++) { for (int j = 0; j < hudController.modelInformations[i].tations.Count; j++) { int modelIndex = i; int tationIndex = j; hudController.modelInformations[i].tations[j].transform.GetChild(0).GetComponent().onClick.AddListener(() => { CameraMgr.Instance.GotoView(hudController.modelInformations[modelIndex].tations[tationIndex].transform, 20f); }); } } } } }