animation.isplaying 是否在播放?

2014-12-31 01:54| 发布者: 杨炎| 查看: 1947| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: animation.isplaying 是否在播放?varisplaying: booldescription描述are we playing any animations?是否在播放任何动画?c#javascriptusing unityengine;using system.collections;public class example :monobeha ...

animation.isplaying 是否在播放?

varisplaying: bool

description描述

are we playing any animations?

是否在播放任何动画

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void onmouseenter() {

if (!animation.isplaying)

animation.play();

}

}

// plays an animation only if we are not playing it already.

// 只在我们没有播放一个动画的时候,播放它。

function onmouseenter() {

if (!animation.isplaying)

animation.play();

}

相关阅读

文章点评
相关文章