// 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); }
// 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); }
void GetCardpick(User user, CardPick cp) { MessageBox(0, cp.Name, user.Name, 1); }
// 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)); }