public void addFlyNum(int num, Vector3 pos, GameObject parentGo) { FlyNumItem item = new FlyNumItem(); m_numList.Add(item); item.setNum(num); item.setParent(parentGo); item.setPos(pos); item.setDisp(onEndFlyNum); item.play(); }
protected void onEndFlyNum(FlyNumItem item) { m_numList.Remove(item); }