/// <summary> /// The init class that sets all the inital variables and gets the other scripts needed /// </summary> private void Init() { //Console.WriteLine("PK : Generate Attacks: Initalizing"); enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyPokemonHandler>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerPokemonHandler>(); attackData = GameObject.FindGameObjectWithTag("AttackData").GetComponent <PokemonAttacks>(); adc = GameObject.FindGameObjectWithTag("Attacks").GetComponent <AttackDamageCalc>(); //Console.WriteLine("PK : Generate Attacks: Initalized"); //Debug.Log("name1:" + pcb.PokemonName + "name2:" + playerPokemonName1); attacksGenerated = false; }
public void SpecialCasesInit() { //Console.WriteLine("PK : Attack Switch Case: Initalizing"); enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyPokemonHandler>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerPokemonHandler>(); attackCalc = GameObject.FindGameObjectWithTag("Attacks").GetComponent <AttackDamageCalc>(); //genAttacks = GameObject.FindGameObjectWithTag("Attacks").GetComponent<GenerateAttacks>(); attacks = GameObject.FindGameObjectWithTag("AttackData").GetComponent <PokemonAttacks>(); tc = GameObject.FindGameObjectWithTag("TurnController").GetComponent <TurnController>(); //Console.WriteLine("PK : Attack Switch Case: Initalized"); }
/// <summary> /// The init class that sets all the inital variables and gets the other scripts needed /// </summary> private void Init() { //Console.WriteLine("PK : Generate Attacks: Initalizing"); enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent<EnemyPokemonHandler>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerPokemonHandler>(); attackData = GameObject.FindGameObjectWithTag("AttackData").GetComponent<PokemonAttacks>(); adc = GameObject.FindGameObjectWithTag("Attacks").GetComponent<AttackDamageCalc>(); //Console.WriteLine("PK : Generate Attacks: Initalized"); //Debug.Log("name1:" + pcb.PokemonName + "name2:" + playerPokemonName1); attacksGenerated = false; }
public void SpecialCasesInit() { //Console.WriteLine("PK : Attack Switch Case: Initalizing"); enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent<EnemyPokemonHandler>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerPokemonHandler>(); attackCalc = GameObject.FindGameObjectWithTag("Attacks").GetComponent<AttackDamageCalc>(); //genAttacks = GameObject.FindGameObjectWithTag("Attacks").GetComponent<GenerateAttacks>(); attacks = GameObject.FindGameObjectWithTag("AttackData").GetComponent<PokemonAttacks>(); tc = GameObject.FindGameObjectWithTag("TurnController").GetComponent<TurnController>(); //Console.WriteLine("PK : Attack Switch Case: Initalized"); }