// 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());
 }
Exemplo n.º 2
0
 // 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 ());
 }
Exemplo n.º 3
0
 private void Start()
 {
     hero        = GameObject.FindGameObjectWithTag("Player");
     target      = GameObject.FindGameObjectWithTag("Target");
     destination = GameObject.FindGameObjectWithTag("Destination");
     zone        = hero.GetComponentInChildren <CombatZoneController>();
     controller  = hero.GetComponent <StateController>();
 }
Exemplo n.º 4
0
 public void Initialize(CombatZoneController zone)
 {
     combatZone = zone;
 }
Exemplo n.º 5
0
 public void Initialize(CombatZoneController zone)
 {
     combatZone = zone;
 }