This version of Unity is unsupported.
Removed

Component.animation

Obsolete Property animation has been deprecated. Use GetComponent<Animation>() instead. public Component animation;

Description

The Animation attached to this GameObject. (Null if there is none attached).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<Animation>().Play(); } }