fork download
  1. void InstantiateCards(ref List<GameObject> cardsPack)
  2. {
  3. for (int i = 0; i < 4; i++)
  4. {
  5. GameObject go = Instantiate (cardsPack [i]) as GameObject;
  6.  
  7. go.transform.SetParent (opponentCardsParent, false);
  8.  
  9. go.transform.localPosition = cardHoldersOnTable2 [i].localPosition;
  10.  
  11. go.GetComponent<RectTransform> ().sizeDelta = new Vector2 (80, 80);
  12.  
  13. go.GetComponent<CardProperties> ().HideCard ();
  14.  
  15. go.GetComponent<DragHandler> ().enabled = false;
  16.  
  17. fallenCardsOpponent [i] = go;
  18. }
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,0): error CS1525: Unexpected symbol `void'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty