public void InstantiateFirebolt() { GameObject ability = (GameObject)Instantiate(_ability._prefab, transform.position, Quaternion.identity); if (ability != null) { EnemyFireboltController fireboltController = ability.GetComponent <EnemyFireboltController>(); fireboltController._target = _targetTransform; fireboltController.Damage = _ability._damage; } //ComManager.Instance.EndCommunication(); _wizardShotByPhoneixCom.TriggerCommunicationEvents(); }
private IEnumerator FireboltRoutine() { _canCastFirebolt = false; GameObject ability = (GameObject)Instantiate(_ability._prefab, transform.position, Quaternion.identity); if (ability != null) { EnemyFireboltController fireboltController = ability.GetComponent <EnemyFireboltController>(); fireboltController._target = _targetTransform; fireboltController.Damage = _ability._damage; } yield return(new WaitForSeconds(4f)); //ActionBarUIController.Instance.HideBubbleFlash(); _canCastFirebolt = true; }