//点击怪物 public void toMonster() { btnGameObject = EventSystem.current.currentSelectedGameObject; int monsterID = int.Parse(btnGameObject.name); magic.LclickM(monsterID); }