// Use this for initialization void Start() { animation = this.GetComponent <Animation>(); meshFilters = gameObject.GetComponentsInChildren <MeshFilter>(); skinedMeshRenderers = gameObject.GetComponentsInChildren <SkinnedMeshRenderer>(); Messager.AddListener("AnimationPlayClick", OnClickPlayAnimation); }