Exemplo n.º 1
0
	}//end of Awake()

	void Start () {
		deck = GetComponent<Deck> ();
		deck.InitDeck (deckXML.text);
		Deck.Shuffle (ref deck.cards);
		layout = GetComponent<BartokLayout> ();
		layout.ReadLayout (layoutXML.text);
		drawPile = UpgradeCardsList (deck.cards);
		LayoutGame ();
	}//end of Start()
Exemplo n.º 2
0
 void Start()
 {
     deck = GetComponent <Deck>();           // Get the Deck
     deck.InitDeck(deckXML.text);            // Pass DeckXML to it
     Deck.Shuffle(ref deck.cards);           // This shuffles the deck
     layout = GetComponent <BartokLayout>(); // Get the Layout
     layout.ReadLayout(layoutXML.text);      // Pass LayoutXML to it
     drawPile = UpgradeCardsList(deck.cards);
     LayoutGame();
 }
Exemplo n.º 3
0
 void Start()
 {
     deck = GetComponent <Deck> ();
     deck.initDeck(deckXML.text);
     Deck.shuffle(ref deck.cards);
     layout = GetComponent <BartokLayout> ();
     layout.readLayout(layoutXML.text);
     drawPile = upgradeCardsList(deck.cards);
     layoutGame();
 }
Exemplo n.º 4
0
    private void Start()
    {
        deck = GetComponent <Deck>();           // Получить компонент Deck
        deck.InitDeck(deckXML.text);            // Передать ему DeckXML
        Deck.Shuffle(ref deck.cards);           // Перетасовать колоду

        layout = GetComponent <BartokLayout>(); //Получить ссылку на компонент Layout
        layout.ReadLayout(layoutXML.text);      // Передать ему LayoutXML
        drawPile = UpgradeCardsList(deck.cards);
        LayoutGame();
    }
Exemplo n.º 5
0
 void Start()
 {
     deck = GetComponent <Deck>();           // Get the Deck
     deck.InitDeck(deckXML.text);            // Pass DeckXML to it
     Deck.Shuffle(ref deck.cards);           // This shuffles the deck
                                             // The ref keyword passes a reference to deck.cards, which allows
                                             //   deck.cards to be modified by Deck.Shuffle()
     layout = GetComponent <BartokLayout>(); // Get the Layout
     layout.ReadLayout(layoutXML.text);      // Pass LayoutXML to it
     drawPile = UpgradeCardsList(deck.cards);
     LayoutGame();
 }
Exemplo n.º 6
0
    private void Start()
    {
        deck = GetComponent <Deck>();   // Извлекаем скрипт
        deck.InitDeck(deckXML.text);    // Передаём т
        Deck.Shuffle(ref deck.cards);

        layout = GetComponent <BartokLayout>();
        layout.ReadLayout(layoutXML.text);  // Передаём файл в функшн

        drawPile = UpgradeCardsList(deck.cards);
        LayoutGame();
    }
	void Start()
	{
		deck = GetComponent<Deck> ();  //Get the deck
		deck.InitDeck (deckXML.text);  //Pass DeckXML to it
		Deck.Shuffle (ref deck.cards);  //This shuffles the deck
		//The ref keyword passes a refrence to deck.cards, which allows deck.cards to be modified by Deck.Shuffle()

		layout = GetComponent<BartokLayout> ();  //Get the layout
		layout.ReadLayout (layoutXML.text);  //Pass LayoutXML to it

		drawPile = UpgradeCardsList (deck.cards);
		LayoutGame ();
	}
Exemplo n.º 8
0
    void Start()
    {
        deck = GetComponent <Deck> ();       //Get the deck
        deck.InitDeck(deckXML.text);         //Pass DeckXML
        Deck.Shuffle(ref deck.cards);        //Shuffle the deck
        //The keyword 'ref' passes a reference to deck.cards,
        //which lets deck.cards be modified by deck.Shuffle()

        layout = GetComponent <BartokLayout> ();
        layout.ReadLayout(layoutXML.text);

        drawPile = UpgradeCardsList(deck.cards);
        LayoutGame();
    }
    private void Start()
    {
        Scoreboard.S.score = ScoreManager.SCORE;

        deck = GetComponent <Deck>();           // Get the Deck
        deck.InitDeck(deckXML.text);            // Pass DeckXML to it
        Deck.Shuffle(ref deck.cards);           // This shuffles the deck by reference

        layout = GetComponent <BartokLayout>(); // Get the Layout component
        layout.ReadLayout(layoutXML.text);      // Pass LayoutXML to it4

        drawPile = ConvertListCardsToListCardProspectors(deck.cards);
        LayoutGame();
    }
Exemplo n.º 10
0
    void Start()
    {
        Scoreboard.S.score = score;
        deck = GetComponent <Deck>();        // Get the Deck
        deck.InitDeck(deckXML.text);         // Pass DeckXML to it
        Deck.Shuffle(ref deck.cards);        // This shuffles the deck
        // The ref keyword passes a reference to deck.cards, which allows
        // deck.cards to be modified by Deck.Shuffle()

        layout = GetComponent <BartokLayout>();    // Get the Layout
        layout.ReadLayout(layoutXML.text);         // Pass LayoutXML to it

        drawPile = ConvertListCardsToListCardProspectors(deck.cards);
        LayoutGame();
    }
Exemplo n.º 11
0
    // Start is called on the frame when a script is enabled just before any of the Update methods is called the first time.
    void Start()
    {
        deck = GetComponent <Deck>();
        deck.InitDeck(deckXML.text);
        Deck.Shuffle(ref deck.cards);

        layout = GetComponent <BartokLayout>();
        layout.ReadLayout(layoutXML.text);

        drawPile = UpgradeCardsList(deck.cards);
        LayoutGame();
        Zeus1 = Instantiate(prefabZeus1) as GameObject;
        Zeus2 = Instantiate(prefabZeus2) as GameObject;
        Zeus3 = Instantiate(prefabZeus3) as GameObject;
        Zeus4 = Instantiate(prefabZeus4) as GameObject;
        Zeus1.SetActive(false);
        Zeus2.SetActive(false);
        Zeus3.SetActive(false);
        Zeus4.SetActive(false);
    }
Exemplo n.º 12
0
    void Start()
    {
        deck = GetComponent<Deck> ();
        deck.InitDeck (deckXML.text);
        Deck.Shuffle (ref deck.cards);

        layout = GetComponent<BartokLayout> ();
        layout.ReadLayout (layoutXML.text);

        drawPile = UpgradeCardsList (deck.cards);
        LayoutGame ();
    }