예제 #1
0
    //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;
    }
예제 #2
0
    //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;
    }
예제 #3
0
    //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;
    }