Previously, I could access and object by saying object.animation.Play() but now after upgrading and creating an animation there is an ‘Animator’ in the inspector, not ‘animation’
So far I have only found out this alternative: Playing an Animation that is within a GameObject - Questions & Answers - Unity Discussions
But that seems like a hack. How do I do this properly?