void Start() { local3PHandler = FindObjectOfType <Local3PHandler>(); canvas = local3PHandler.canvas; playerArea = local3PHandler.playerArea; }
void Start() { List <string> deck = Local3PHandler.GenerateDeck(); local3PHandler = FindObjectOfType <Local3PHandler>(); int i = 0; foreach (string card in deck) { if (this.name == card) { cardFace = local3PHandler.cardFaces[i]; break; } i++; } spriteRenderer = this.GetComponent <Image>(); sprite = this.GetComponent <SpriteRenderer>(); }
void Start() { local3PHandler = FindObjectOfType <Local3PHandler>(); round = local3PHandler.playerRound; }