public void Remove(GameObject go) { if (go == null) { Debug.Log("Remove null"); return; } else { ClickBox box = go.GetComponent <ClickBox>(); box.OverAnimPlay(); ClickBox.BoxType type = box.type; //处理点击事件a b if (type == ClickBox.BoxType.YellowBox || type == ClickBox.BoxType.BlueBox) { MakeEventAB(); blockCount[box.blockIndex]--; } Remove(go, type); clickCount++; } }