void Update() { if (photonView.isMine) { if (Input.GetKeyDown(KeyCode.Q)) { basicAttackController.CancelAttack(); CancelAll(); qSkillStart.Invoke(); } if (Input.GetKeyDown(KeyCode.W)) { basicAttackController.CancelAttack(); CancelAll(); wSkillStart.Invoke(); } if (Input.GetKeyDown(KeyCode.E)) { basicAttackController.CancelAttack(); CancelAll(); eSkillStart.Invoke(); } if (Input.GetKeyDown(KeyCode.R)) { basicAttackController.CancelAttack(); CancelAll(); rSkillStart.Invoke(); } if (Input.GetButtonDown("Fire2")) { CancelAll(); } } }
public void ApplyFreezeRPC(float time) { sfx.PlaySoundRPC("freeze", false); CleanStun(); freeze = true; if (navChar.enabled) { navChar.cancelarMovimiento(); } freezeEffect.SetActive(true); basicAttackController.CancelAttack(); basicAttackController.enabled = false; skillController.enabled = false; freezeCoroutine = StartCoroutine(DelayedTask(CleanFreeze, time)); }
private void Die() { isAlive = false; statusController.CleanAll(); syncAnimator.SetTrigger("death"); skillController.enabled = false; basicAttackController.CancelAttack(); basicAttackController.enabled = false; coll.enabled = false; if (PhotonNetwork.isMasterClient) { battleArena.CheckGame(); } }