void cantEAnymore() { canRecast = false; CooldownE = false; IndE.StartCooldown(CDE, this, 3); Destroy(currentSander); }
void EndE() { Anim.SetBool("ERun", false); Anim.SetBool("isAttacking", false); Destroy(CurrentWorld); speed = 3f; CooldownE = false; IndE.StartCooldown(CDE, this, 3); canAttack = true; }
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; } }
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); } }
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; } }
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); } }
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()); } } }
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()); } } }
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()); } } }