void Start() { StartCoroutine (MyCoroutine (target)); var logger = new Logger (); StartCoroutine (logger.Distance (transform, target)); }