/// <summary> /// 显示面板 /// </summary> /// <param name="ch"></param> /// <param name="OnWeaponClicked"></param> public void Show(CharacterLogic ch, UnityAction <int> OnWeaponClicked) { //在这里做控件初始化 charstate.Init(ch); attackinfo.Init(ch); weaponselect.Init(ch, OnWeaponClicked); gameObject.SetActive(true); weaponselect.Buttons[0].Select(); }
public void refreshCharInfo() { csbp.Init(_gameCharList[selectedCharIndex].Logic); ipBottom.Init(_gameCharList[selectedCharIndex].Logic); }