public override bool OnClose() { base.OnClose(); mView.Close(); type = EHEROSHOWTYPE.Card; return(true); }
public override void SetParameters(object[] arg) { if (arg.Length > 0) { heroID = (int)arg[0]; } if (arg.Length > 1) { type = (EHEROSHOWTYPE)arg[1]; } }
private void ShowType(EHEROSHOWTYPE type) { if (showGo != null) { showGo.SetParent(Hide_trf); } if (LOfficer_obj.activeInHierarchy) { LOfficer_obj.SetActive(false); Left_obj.SetActive(true); } if (Divination_obj.activeInHierarchy) { Divination_obj.SetActive(false); takeoff_btn.gameObject.SetActive(false); take_btn.gameObject.SetActive(false); Equip_obj.SetActive(true); Dress_btn.gameObject.SetActive(true); Intensify_btn.gameObject.SetActive(true); } ShowLeft(); switch (type) { case EHEROSHOWTYPE.Card: ShowCard(); break; case EHEROSHOWTYPE.Officer: ShowOfficer(); break; case EHEROSHOWTYPE.Divination: ShowDivination(); break; case EHEROSHOWTYPE.Skill: ShowSkill(); break; case EHEROSHOWTYPE.Relation: ShowRelation(); break; case EHEROSHOWTYPE.Detail: ShowDetail(); break; } showType = type; }
public void Open(int heroid, EHEROSHOWTYPE type = EHEROSHOWTYPE.Card, bool move = true) { heroData = HeroMgr.GetSingleton().GetHeroData(heroid); BuildHeroEvent(heroid); RegisteEvent(); foreach (var item in imageType) { if (item.Value == type) { item.Key.GetComponent <Toggle>().isOn = true; } } ddActive = true; ShowPopList(null); ShowType(type); ShowLeft(); ShowSide(move); }