// Use this for initialization void Start() { _oscSender = this.gameObject.GetComponent <OscSender>(); _oscSender.setup(); float sendRate_ = 1f / sendRate; InvokeRepeating("_sendOscData", 0, sendRate_); }