As you can see the naming is the exact same. However i still get this error message. (All the Animations are marked as Legacy)
This is the Code: (It works for all the other animations and even when switching them around)
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Target") && !hasEntered)
{
Quaternion spawnRotation = Quaternion.Euler
(
90f,
other.transform.eulerAngles.y,
180f
);
summonedSpeechbubble = Instantiate(Speechbubble,new Vector3(transform.position.x,transform.position.y + Abstand,transform.position.z),spawnRotation);
SpeechBubbleAnimation = summonedSpeechbubble.GetComponentInChildren<Animation>();
if (SpeechBubbleAnimation != null) { SpeechBubbleAnimation.Play("BubbleInstantiate"); }
display_text = summonedSpeechbubble.GetComponentInChildren<TextMeshPro>();
display_text.text = possiblespeechbubbleTEXT.currentText;
hasEntered = true;
if (SpeechBubbleAnimation != null) { SpeechBubbleAnimation.Play("UpAndDownBubble"); }
}
}
