The Animations component on the GameObject needs to contain the animation you're trying to play with Play Animation.
Quite a lot has changed in Unity since that tutorial was made. Mecanim Animator is now the preferred animation system in Unity, controlled with Animator actions. To use animations with the old animation system the animations need to be marked as Legacy in import settings.