// Use this for initialization void Start() { Deck = GameObject.Find("Decks"); deck = Deck.GetComponent <DeckOne> (); canvas = GameObject.Find("Canvas"); cardList = canvas.GetComponent <DeckListGui> (); cardNumber = 0; }
public void BuildCustomDeck() { GameObject[] PlayersAlive = GameObject.FindGameObjectsWithTag("Player"); // Debug.Log (PlayersAlive.Length); //Rakentaa itsetehdyn pakan. Pakkaa pystyy muokkaamaan kylän "library":ssä GameObject DeckOne = GameObject.Find("Decks"); DeckOne deckOne = DeckOne.GetComponent <DeckOne> (); deckOne.Deck(); }
// Use this for initialization void Start() { Deck = GameObject.Find("Decks"); deck = Deck.GetComponent <DeckOne> (); }