GameObject.animation 动画

var animation : Animation

Description描述

The Animation attached to this GameObject (Read Only). (null if there is none attached)

附属于这个游戏物体上的动画(只读)。(如果没有则为空)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public GameObject other;
	public void Awake() {
		other.animation.Play();
	}
}
var other : GameObject;
other.animation.Play();
Page last updated: 2011-5-19