コード例 #1
0
        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();
        }
コード例 #2
0
        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;
        }