Animation

I have 2 animations
for light swithcer -
https://ctrlv.cz/bI3D
how i can start animation Element 0 or Element 1
i have in code

zap.Play();

but it starts only animation element 1

You use an Animator component to control animations, setting triggers to transition between animation states. Please follow the Unity animation tutorials to understand more: Unity Connect