public TextEffect Build(GameObject gameObject) { WaveEffect effect = new WaveEffect(gameObject); effect.Offset = currentOffset; currentOffset += 0.08f; return(effect); }
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; }
private void Start() { dM = this.gameObject.GetComponent <DialogueManager>(); cE = this.gameObject.GetComponent <ColorEffect>(); wE = this.gameObject.GetComponent <WaveEffect>(); }