Пример #1
0
 public void Init(Table t)
 {
     table  = t;
     player = table.player;
     pc     = table.pc;
     //load deck
     BuidDeck();
     //set up first 4 cards
     setTable();
     //initialize player and pc and pass table reference
     player.INIT(t);
     pc.INIT(t);
     //assign card to players
     giveCardToPlayers();
     deckImage     = GameObject.Find("deckImage").GetComponent <Image>();
     score_manager = FindObjectOfType <ScoreManager>();
     cardEnded     = false;
     ui            = FindObjectOfType <UI_Manager>();
     ui.INIT();
 }
Пример #2
0
 private void Start()
 {
     manager = FindObjectOfType <UI_Manager>();
     manager.INIT();
 }