Exemple #1
0
 public void EnterTown()
 {
     gameState = DAY;
     title.gameObject.SetActive(false);
     startGameButton.gameObject.SetActive(false);
     runButton.gameObject.SetActive(true);
     BattleFieldManager.generateMap(daysWon);
     currentDeck = new List <FunctionBullet>(inventory);
     for (int i = 0; i < 6; i++)
     {
         int randomCard = (int)UnityEngine.Random.Range(0, currentDeck.Count);
         currentHand[i] = currentDeck[randomCard];
         currentDeck.RemoveAt(randomCard);
         functionUI[i] = Instantiate(drag, new Vector3(600, 380 - i * 50, 0f), new Quaternion());
         functionUI[i].GetComponent <DragableFunction>().init(i, currentHand[i]);
     }
 }