public IEnumerator RushToMover() { if (mover == null) { Debug.LogError("Mover is not specified"); } // Start pos is swarm current pos. yield return(uniformGrid.StartCoroutine(uniformGrid.FindPathRoutine(targetMover.transform.position, mover.transform.position))); // Start moving the swarm here. if (targetMover != null) { // Debug.Log(uniformGrid.path.Count); targetMover.AddPath(uniformGrid.path); } }