animation.isplaying 是否在播放?

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

摘要: animation.isplaying 是否在播放?functionisplaying(name: string) : booldescription描述is the animation named name playing?名为name的动画正在播放吗?c#javascriptusing unityengine;using system.collection ...

animation.isplaying 是否在播放?

functionisplaying(name: string) : bool

description描述

is the animation named name playing?

名为name的动画正在播放吗?

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void onmouseenter() {

if (!animation.isplaying("mouseovereffect"))

animation.play("mouseovereffect");

}

}

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

//仅当不播放时,播放动画

function onmouseenter() {

if (!animation.isplaying("mouseovereffect"))

animation.play("mouseovereffect");

}

相关阅读

文章点评
相关文章