//Constructor public QuickAttack(Animator anim, PKMNEntity basis) { //Set reference variables and any other variables concerning entity this.anim = anim; this.basis = basis; this.dashBox = basis.GetComponent <DashChargeHitBox>(); this.enemyTag = (basis.tag == "Player") ? "Enemy" : "Player"; //Establish any other variables numCharges = MAX_CHARGES; offCD = true; cTimer = 0f; }
//Constructor public ShellDash(Animator anim, PKMNEntity basis, ProgressBar progress) { //Set reference variables and any other variables concerning entity this.anim = anim; this.basis = basis; this.dashBox = basis.GetComponent <DashChargeHitBox>(); this.enemyTag = (basis.tag == "Player") ? "Enemy" : "Player"; this.progress = progress; //Establish any other variables cTimer = 0.0f; offCD = true; }
//Constructor public GattlerBlast(Animator anim, PKMNEntity basis) { //Set reference variables and any other variables concerning entity this.anim = anim; this.basis = basis; this.dashBox = basis.GetComponent <DashChargeHitBox>(); this.enemyTag = (basis.tag == "Player") ? "Enemy" : "Player"; this.mainHitbox = Resources.Load <Transform>("MoveHitboxes/TriangleHitbox"); //Set other variables canAttack = true; offCD = true; numCharges = MAX_CHARGES; }