Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     unitCount   = GameObject.Find("MapManager").GetComponent <UnitCount>();
     mana        = GameObject.Find("MapManager").GetComponent <Mana>();
     cardPick    = GameObject.Find("CardManager").GetComponent <CardPick>();
     handofCards = GameObject.Find("CardManager").GetComponent <HandofCards>();
     this.GetComponent <Button>().onClick.AddListener(SetNextRound);
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     moveUnits   = GameObject.Find("UnitManager").GetComponent <MoveUnits>();
     nextRound   = GameObject.Find("Next Round").GetComponent <NextRound>();
     handofCards = GameObject.Find("CardManager").GetComponent <HandofCards>();
     mana        = GameObject.Find("MapManager").GetComponent <Mana>();
     cardPick    = GameObject.Find("CardManager").GetComponent <CardPick>();
     this.GetComponent <Button>().onClick.AddListener(PickCard);
 }
Esempio n. 3
0
 void GetCardpick(User user, CardPick cp)
 {
     MessageBox(0, cp.Name, user.Name, 1);
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     cardPick = GameObject.Find("CardManager").GetComponent <CardPick>();
     mana     = GameObject.Find("MapManager").GetComponent <Mana>();
 }
Esempio n. 5
0
 void Start()
 {
     cardPick = (CardPick)FindObjectOfType(typeof(CardPick));
 }