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"); }
// Use this for initialization void Awake() { createPokeDex(); pdm = this.GetComponent <PokemonDamageMultipliers>(); createDamageMultipliers(); }
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"); }
// Use this for initialization void Awake() { createPokeDex(); pdm = this.GetComponent<PokemonDamageMultipliers>(); createDamageMultipliers(); }