private IEnumerator DrawLightning() { lightningBolt.DrawLightning(origin.transform.position, target.transform.position); lightningBolt.FadeLightning(); yield return(new WaitForSeconds(timeBetweenBounces)); }
private IEnumerator DrawLightning() { lightningBolt.DrawLightning(origin, target); lightningBolt.FadeLightning(); yield return(new WaitForSeconds(0.0f)); }
private IEnumerator DrawLightning() { glowParticlesPrefab = GameObject.Instantiate(glowParticlesPrefab); glowParticlesPrefab.transform.position = target.transform.position; glowParticlesPrefab.transform.parent = transform; Destroy(glowParticlesPrefab, 2.0f); lightningBolt.DrawLightning(origin.transform.position, target.transform.position); lightningBolt.FadeLightning(); yield return(new WaitForSeconds(timeBetweenBounces)); }