private void Init() { enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyPokemonHandler>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerPokemonHandler>(); gui = GameObject.FindGameObjectWithTag("GUIScripts").GetComponent <GUIScript>(); attack_Switch_Case = GameObject.FindGameObjectWithTag("Attacks").GetComponent <Attack_Switch_Case>(); }
private void Init() { Console.WriteLine("PK : Attack Damage Calculator: Initalizing"); enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyPokemonHandler>(); if (enemyStats == null) { Debug.LogError("No Enemy Stats"); } playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerPokemonHandler>(); if (playerStats == null) { Debug.Log("No Player Stats"); } attacks = GameObject.FindGameObjectWithTag("AttackData").GetComponent <PokemonAttacks>(); //genAttacks = GameObject.FindGameObjectWithTag("Attacks").GetComponent<GenerateAttacks>(); attack_Switch_Case = GameObject.FindGameObjectWithTag("Attacks").GetComponent <Attack_Switch_Case>(); damage_mult = GameObject.FindGameObjectWithTag("dmg_mult").GetComponent <PokemonDamageMultipliers>(); tc = GameObject.FindGameObjectWithTag("TurnController").GetComponent <TurnController>(); Console.WriteLine("PK : Attack Damage Calculator: Initalized"); }
private void Init() { Console.WriteLine("PK : Attack Damage Calculator: Initalizing"); enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent<EnemyPokemonHandler>(); if(enemyStats == null) { Debug.LogError("No Enemy Stats"); } playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerPokemonHandler>(); if(playerStats == null) { Debug.Log("No Player Stats"); } attacks = GameObject.FindGameObjectWithTag("AttackData").GetComponent<PokemonAttacks>(); //genAttacks = GameObject.FindGameObjectWithTag("Attacks").GetComponent<GenerateAttacks>(); attack_Switch_Case = GameObject.FindGameObjectWithTag("Attacks").GetComponent<Attack_Switch_Case>(); damage_mult = GameObject.FindGameObjectWithTag("dmg_mult").GetComponent<PokemonDamageMultipliers>(); tc = GameObject.FindGameObjectWithTag("TurnController").GetComponent<TurnController>(); Console.WriteLine("PK : Attack Damage Calculator: Initalized"); }
private void Init() { enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent<EnemyPokemonHandler>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerPokemonHandler>(); gui = GameObject.FindGameObjectWithTag("GUIScripts").GetComponent<GUIScript>(); attack_Switch_Case = GameObject.FindGameObjectWithTag("Attacks").GetComponent<Attack_Switch_Case>(); }