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>();
 }
Exemplo n.º 2
0
 void Start()
 {
     positionPlaceHolderGO = GameObject.FindGameObjectWithTag("PBLPlace");
     positionPlaceHolder   = positionPlaceHolderGO.GetComponent <RectTransform>().anchoredPosition;
     //sprites = GameObject.Find("PNGs").GetComponent<PokemonPNGHolder>();
     pokemonData = GameObject.FindGameObjectWithTag("PBL").GetComponent <PlayerPokemonHandler>();
     Init();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Awake()
 {
     swapPanelOpen = true;
     Console.WriteLine("PK : GUIScript : Initalizing");
     playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerPokemonHandler>();
     enemyStats  = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyPokemonHandler>();
     togglePanel();
 }
 /// <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;
 }
Exemplo n.º 5
0
    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");
    }
    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");
    }
 /// <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;
 }
    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");
    }
 void Start()
 {
     positionPlaceHolderGO = GameObject.FindGameObjectWithTag("PBLPlace");
     positionPlaceHolder = positionPlaceHolderGO.GetComponent<RectTransform>().anchoredPosition;
     //sprites = GameObject.Find("PNGs").GetComponent<PokemonPNGHolder>();
     pokemonData = GameObject.FindGameObjectWithTag("PBL").GetComponent<PlayerPokemonHandler>();
     Init();
 }
    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");
    }
 // Use this for initialization
 void Awake()
 {
     swapPanelOpen = true;
     Console.WriteLine("PK : GUIScript : Initalizing");
     playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerPokemonHandler>();
     enemyStats = GameObject.FindGameObjectWithTag("Enemy").GetComponent<EnemyPokemonHandler>();
     togglePanel();
 }
 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>();
 }