//public Card public void INIT(B_Table t) { images = GetComponentsInChildren <Image>(); buttons = GetComponentsInChildren <Button>(); table = t; HilightBorder(false); }
private void Start() { ui = FindObjectOfType <B_UI>(); allPlayers = FindObjectsOfType <B_Entity>(); //set player foreach (var item in allPlayers) { if (item.isPlayer) { player = item; } } table = GetComponent <B_Table>(); table.green = allPlayers[0].green; BuidDeck(); if (GameType != gameType.five) { normalPlaySetUp(); } else { callingSetUp(); } //initialize table for last beacause game start whit table table.INIT(this); }