public override void Init() { //allEvents = DataPool.GetInstance().GetStaticVar("养成按钮") as List<EduEvent>; allEvents = manager.staticData.eduEvents; uiManager = root.transform.Find("Edu_Panel").GetComponent <EduUIManager>(); uiManager.SetEduNode(this); uiManager.SetEduEvent(allEvents); factory = NodeFactory.GetInstance(); }
public void SetUIManager(EduUIManager manager) { this.uiManager = manager; }
void Start() { root = GameObject.Find("UI Root"); em = root.transform.Find("Edu_Panel").gameObject.GetComponent <EduUIManager>(); }