I am trying to call one corutine consecutively after another. But the second one is not working. Any ideas? I have been looking at the forums and I couldn’t find any solution.
Thank you very much!
void showComparison (Collider target)
{
key = Camera.main.ScreenToWorldPoint (key);
StartCoroutine (MoveFromTo (target.gameObject, target.transform.position, key, 1));
GameObject player = GameObject.Find ("myPlayer");
StartCoroutine (MoveFromTo (player, player.transform.position, key, 1));
}