void Awake() { playerHealth = GameObject.FindGameObjectWithTag ("Player").GetComponent<PlayerHealth> (); enemyHealth = GameObject.FindGameObjectWithTag ("Enemy").GetComponent<EnemyHealth> (); playerMoney = GameObject.FindGameObjectWithTag ("Player").GetComponent<PlayerMoney> (); enemyMoney = GameObject.FindGameObjectWithTag ("Enemy").GetComponent<EnemyMoney> (); }
void Start() { enemy = GameObject.FindGameObjectWithTag ("Enemy"); enemyDeck = GameObject.FindGameObjectWithTag ("GameController").GetComponent<EnemyDeck> (); //enemyHand = enemyDeck.handEnemy; enemyAttack = enemy.GetComponent<EnemyAttack> (); enemyHealth = enemy.GetComponent<EnemyHealth> (); enemyMoney = enemy.GetComponent<EnemyMoney> (); EnemyOffensePanel = GameObject.FindGameObjectWithTag ("EnemyOffense"); EnemyDefensePanel = GameObject.FindGameObjectWithTag ("EnemyDefense"); }