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