animation not playing unity

Code Example - animation not playing unity

                
                        1. Check animation controller is attached to the game object
2. Check the animation loop is ticked if that is looping animation
3. Add animation to animation controller