void Start() { mVertical.SetValue(mCellCount, (int index, GameObject o) => { o.GetComponentInChildren <Text>().text = index.ToString(); }); mHorizontal.SetValue(mCellCount, (int index, GameObject o) => { o.GetComponentInChildren <Text>().text = index.ToString(); }); }