// Use this for initialization void Start() { cr = FindObjectOfType <CircleRotation>(); speech = this.GetComponent(typeof(TextFileSpeaker)) as Crosstales.RTVoice.Tool.TextFileSpeaker; speaker = this.GetComponentInParent(typeof(Speaker)) as Crosstales.RTVoice.Speaker; Speaker.OnSpeakComplete += turnOff; }
public void OnEnable() { script = (TextFileSpeaker)target; }