// Use this for initialization void Start() { //GameDeck = GameObjectUtils.AddAndPosition (DeckPrefab, this.gameObject, Vector3.zero).GetComponent<DeckController>(); GameDeck = transform.Find("Deck").gameObject.GetComponent <DeckController> (); CombatZone = transform.Find("CombatZone").gameObject.GetComponent <CombatZoneController>(); Players = new List <HandController>(); StartCoroutine(Deal()); }
// Use this for initialization void Start() { //GameDeck = GameObjectUtils.AddAndPosition (DeckPrefab, this.gameObject, Vector3.zero).GetComponent<DeckController>(); GameDeck = transform.Find ("Deck").gameObject.GetComponent<DeckController> (); CombatZone = transform.Find("CombatZone").gameObject.GetComponent<CombatZoneController>(); Players = new List<HandController>(); StartCoroutine (Deal ()); }
private void Start() { hero = GameObject.FindGameObjectWithTag("Player"); target = GameObject.FindGameObjectWithTag("Target"); destination = GameObject.FindGameObjectWithTag("Destination"); zone = hero.GetComponentInChildren <CombatZoneController>(); controller = hero.GetComponent <StateController>(); }
public void Initialize(CombatZoneController zone) { combatZone = zone; }
public void Initialize(CombatZoneController zone) { combatZone = zone; }