// 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; }
void Start() { GameObject circleRotationObject = GameObject.FindWithTag("CircleHazard"); if (circleRotationObject != null) { circleRotation = circleRotationObject.GetComponent <CircleRotation> (); } }
private void Initialize() { needleBody.SetActive(false); myBody = GetComponent <Rigidbody2D>(); gameCircle = GameObject.FindObjectOfType <CircleRotation>(); }