Ejemplo n.º 1
0
    public TextEffect Build(GameObject gameObject)
    {
        WaveEffect effect = new WaveEffect(gameObject);

        effect.Offset  = currentOffset;
        currentOffset += 0.08f;
        return(effect);
    }
Ejemplo n.º 2
0
    void FireEffects()
    {
        WaveEffect wEffect = Instantiate(waveEffect, transform.position, Quaternion.identity);

        wEffect.effectSize = waveSize;
        wEffect.growRate   = waveGrowRate;
        Camera.main.GetComponent <CameraShake> ().shakeAmount   = shakeAmount;
        Camera.main.GetComponent <CameraShake> ().shakeDuration = shakeDuration;
    }
Ejemplo n.º 3
0
 private void Start()
 {
     dM = this.gameObject.GetComponent <DialogueManager>();
     cE = this.gameObject.GetComponent <ColorEffect>();
     wE = this.gameObject.GetComponent <WaveEffect>();
 }