예제 #1
0
    private IEnumerator DrawLightning()
    {
        lightningBolt.DrawLightning(origin.transform.position, target.transform.position);
        lightningBolt.FadeLightning();

        yield return(new WaitForSeconds(timeBetweenBounces));
    }
예제 #2
0
    private IEnumerator DrawLightning()
    {
        lightningBolt.DrawLightning(origin, target);
        lightningBolt.FadeLightning();

        yield return(new WaitForSeconds(0.0f));
    }
예제 #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));
    }