Playing door animation doesn't work.

Following script:
using UnityEngine;
using System.Collections;

public class DoorToggle : MonoBehaviour {
	private bool doorOpen = false;
	// Use this for initialization
	void Start () {
	void OnMouseUpAsButton () {
		if (doorOpen) {
		else {
		doorOpen = !doorOpen;
	void OnGUI() {
		GUI.Box(new Rect(32,32,100,24),doorOpen.ToString());
	// Update is called once per frame
	void Update () {

doesn’t work. Code gets executed as doorOpen is changing values, but it doesn’t work.

Door were animated in Blender, closing/opening animations are like 60 frames (1sec). I’ve tried to use Play, PlayQueued and even crossfade, none of these are working.

Try switching the animation type to Legacy, It’s located in objects inspector Rig tab.

Be sure that before importing to Unity: In Blender, select your door object, hit CTRL + A, then apply Rotation and Scale. Then use Legacy Rig, under Generation, select Store In Root(New).