Firstly, I have really looked up my problem for a long time. And I have also tried a lot of different possibilities. Yet, I still didn’t get my code running. Please do not refer to other Threads. I most likely have already read them.
So, for my problem. I tried to let the script wait until an animation has finished playing but somehow the two timestamps I created always show the same Time.
void OnTriggerExit2D(Collider2D other) {
//print(Time.time);
StartCoroutine(WaitForFalling());
//print(Time.time);
}
private IEnumerator WaitForFalling() {
yield return new WaitForSeconds(1);
}
Thank you very much for looking through my code and for your time.