Exemple #1
0
    public TextEffect Build(GameObject gameObject)
    {
        WaveEffect effect = new WaveEffect(gameObject);

        effect.Offset  = currentOffset;
        currentOffset += 0.08f;
        return(effect);
    }
Exemple #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;
    }
Exemple #3
0
 private void Start()
 {
     dM = this.gameObject.GetComponent <DialogueManager>();
     cE = this.gameObject.GetComponent <ColorEffect>();
     wE = this.gameObject.GetComponent <WaveEffect>();
 }