how do i use two animation on the sameObject.

here is my code but i wanna add different animation on the Main Camera. How can i do it ?

public class Menu: MonoBehaviour {
public AnimationClip zaman;
void OnMouseDown(){
Camera.mainCamera.animation.Play(“zamanadon”);
}
}

Maybe set up another public AnimationClip, then call the animation with a different input…

How do you want the animations to play? Together or individually?

Give me some more context about the project and I will try to help more.

i want individually. when i click “start”, main camera will animate, when i click the “options” main camera will animate again but different.
when i click on the Main camera i did the first animate successfully (Ctrl + F6) but for second animate i can not do it anymore.

Anyone help me ?

How have you got your animation component set up? Like below? With two elements?

Image is a bit small :slight_smile:

Open image in new tab and zoom.

yes, it is. btw if u have skype i can show u easily.

sure, whats your contact name?

sezercan.aktemur