Exemple #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);
 }
Exemple #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);
 }
Exemple #3
0
 void GetCardpick(User user, CardPick cp)
 {
     MessageBox(0, cp.Name, user.Name, 1);
 }
Exemple #4
0
 // Start is called before the first frame update
 void Start()
 {
     cardPick = GameObject.Find("CardManager").GetComponent <CardPick>();
     mana     = GameObject.Find("MapManager").GetComponent <Mana>();
 }
 void Start()
 {
     cardPick = (CardPick)FindObjectOfType(typeof(CardPick));
 }