if (!found) {
//we did not found model in the deck
GameObject objSmallController = NGUITools.AddChild(gridDeck.gameObject, prefabSmallPileController);
CardPileSmallController ctrl = objSmallController.GetComponent<CardPileSmallController>();
ctrl.editor = this;
ctrl.ApplyModel(pile);
objSmallController
.transform.localScale = new Vector3
(0
.70008f, 0
.70008f, 1
.00008f
); gridDeck.Reposition();
UIDragScrollView scrollBehaviour = objSmallController.GetComponent<UIDragScrollView>();
scrollBehaviour.scrollView = scrollDeck;
}