Exemple #1
0
 void cantEAnymore()
 {
     canRecast = false;
     CooldownE = false;
     IndE.StartCooldown(CDE, this, 3);
     Destroy(currentSander);
 }
Exemple #2
0
 void EndE()
 {
     Anim.SetBool("ERun", false);
     Anim.SetBool("isAttacking", false);
     Destroy(CurrentWorld);
     speed     = 3f;
     CooldownE = false;
     IndE.StartCooldown(CDE, this, 3);
     canAttack = true;
 }
Exemple #3
0
 public override void activateE()
 {
     if (canAttack)
     {
         CooldownE = false;
         canMove   = false;
         IndE.StartCooldown(CDE, this, 3);
         forceStopMoving();
         Anim.SetTrigger("E");
         Anim.SetBool("isAttacking", true);
         Anim.SetBool("isIdle", false);
         canAttack = false;
     }
 }
Exemple #4
0
 public override void takeDamage(int damage, bool magic, bool sound)
 {
     if (invuln)
     {
         IndE.StartCooldown(1f, this, 3);
     }
     else if (sound)
     {
         //Yielded
     }
     else
     {
         base.takeDamage(damage, magic, false);
     }
 }
Exemple #5
0
 public override void activateE()
 {
     if (canAttack)
     {
         CooldownE = false;
         canMove   = false;
         IndE.StartCooldown(CDE, this, 3);
         dashLoc = ELocation.transform.position;
         forceStopMoving();
         graphics.transform.rotation = EIndicator.transform.rotation;
         Anim.SetTrigger("E");
         Anim.SetBool("isAttacking", true);
         Anim.SetBool("isIdle", false);
         canAttack   = false;
         NewPosition = dashLoc;
     }
 }
Exemple #6
0
 public void endDamageAuto()
 {
     creepSelected.takeDamage(damageE);
     numberE += 1;
     EndAutoAttack();
     if (numberE <= 3)
     {
         damageE *= 2;
     }
     else
     {
         IndE.StartCooldown(CDE, this, 3);
         numberE = 0;
         Anim.SetBool("isIdle", true);
         Anim.SetBool("isWalking", false);
         Anim.SetBool("isAttacking", false);
     }
 }
Exemple #7
0
 public override void activateE()
 {
     if (canAttack)
     {
         CooldownE = false;
         canMove   = false;
         IndE.StartCooldown(CDE, this, 3);
         dashLoc = new Vector3(ELocation.transform.position.x, transform.position.y, ELocation.transform.position.z);
         forceStopMoving();
         graphics.transform.rotation = EIndicator.transform.rotation;
         Anim.SetTrigger("E");
         Anim.SetBool("isAttacking", true);
         Anim.SetBool("isIdle", false);
         canAttack   = false;
         NewPosition = dashLoc;
         if (itemsHad[6])
         {
             StartCoroutine(hexagon());
         }
     }
 }
Exemple #8
0
 public override void activateE()
 {
     if (canAttack)
     {
         canMove = false;
         forceStopMoving();
         if (!canRecast)
         {
             EPos = EPosition.position;
             Anim.SetTrigger("E");
             graphics.transform.rotation = EIndicator.transform.rotation;
             Anim.SetBool("isAttacking", true);
             Anim.SetBool("isIdle", false);
             canRecast = true;
             Invoke("cantEAnymore", 6);
         }
         else
         {
             CancelInvoke();
             graphics.transform.LookAt(currentSander.transform.position);
             Anim.SetBool("EGrab", true);
             Anim.SetBool("isAttacking", true);
             Anim.SetBool("isIdle", false);
             currentSander.GetComponent <Sander>().moveBackToMe(sanderPos.position);
             waitingGrab = true;
             currentSander.GetComponent <Sander>().isRooting = true;
             StartCoroutine(waitGrab());
             CooldownE = false;
             IndE.StartCooldown(CDE, this, 3);
             canRecast = false;
         }
         canAttack = false;
         if (itemsHad[6])
         {
             StartCoroutine(hexagon());
         }
     }
 }
Exemple #9
0
    public override void activateE()
    {
        if (canAttack)
        {
            kickLoc = kickPosition.transform.position;

            CooldownE = false;
            canMove   = false;
            IndE.StartCooldown(CDE, this, 3);
            forceStopMoving();
            transform.LookAt(EPos.transform.position - transform.position);
            Anim.SetBool("ERun", true);
            Anim.SetBool("isAttacking", true);
            Anim.SetBool("isIdle", false);
            canAttack  = false;
            running    = true;
            targetPosE = creepE.transform.position;
            if (itemsHad[6])
            {
                StartCoroutine(hexagon());
            }
        }
    }