完善编辑器
This commit is contained in:
@@ -27,7 +27,6 @@ public class UIMonsterItem : UIBaseItem
|
||||
public Button btnDel; //ɾ<><C9BE>
|
||||
public Button btnCopy; //<2F><><EFBFBD><EFBFBD>
|
||||
public Button btnHide; //<2F><><EFBFBD><EFBFBD>
|
||||
public Button btnClickSelf; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
public List<string> paths;
|
||||
//public int itemIdx;
|
||||
public int pathIdx;
|
||||
@@ -36,12 +35,12 @@ public class UIMonsterItem : UIBaseItem
|
||||
public MonstersConfig.MonsterConfig monster;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Awake()
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
groupId = -1;
|
||||
btnDel.onClick.AddListener(RemoveSelf);
|
||||
paths = new List<string>();
|
||||
btnClickSelf.onClick.AddListener(OnClickSelf);
|
||||
btnCopy.onClick.AddListener(OnCopySelf);
|
||||
btnHide.onClick.AddListener(OnHideSelf);
|
||||
txtPos.onEndEdit.AddListener(OnEndEditPos);
|
||||
@@ -147,15 +146,6 @@ public class UIMonsterItem : UIBaseItem
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private void OnClickSelf()
|
||||
{
|
||||
if (OnClick == null)
|
||||
return;
|
||||
OnClick(this);
|
||||
OnClickItemSelf();
|
||||
}
|
||||
|
||||
private void OnCopySelf()
|
||||
{
|
||||
if (OnCopyItem == null)
|
||||
|
||||
Reference in New Issue
Block a user