void Create_BattleInfo(CARD_TYPE myType, int iMyNum, CARD_TYPE yourType, int iYourNum) { GameObject obj = GameObject.Instantiate(Resources.Load("Prefab/BattleInfo") as GameObject, Vector3.zero, Quaternion.identity); obj.transform.SetParent(_grid.transform); obj.transform.localScale = new Vector3(1f, 1f, 1f); obj.transform.SetAsFirstSibling(); _grid.Reposition(); _scrollview.ResetPosition(); BattleInfo battleInfo = obj.GetComponent <BattleInfo>(); battleInfo.Set_BattleInfo(myType, iMyNum, yourType, iYourNum, _randomNumbers[_iBattleRound]); }