Ejemplo n.º 1
0
    private IEnumerator DrawLightning()
    {
        lightningBolt.DrawLightning(origin.transform.position, target.transform.position);
        lightningBolt.FadeLightning();

        yield return(new WaitForSeconds(timeBetweenBounces));
    }
Ejemplo n.º 2
0
    private IEnumerator DrawLightning()
    {
        lightningBolt.DrawLightning(origin, target);
        lightningBolt.FadeLightning();

        yield return(new WaitForSeconds(0.0f));
    }
Ejemplo n.º 3
0
    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));
    }