找回密碼
 注冊帳號

掃一掃,訪問微社區

animation.isplaying 是否在播放?

2014-12-31 01:58| 發布者: 楊炎| 查看: 2171| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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");

}

相關閱讀

文章點評
相關文章
女校游泳队彩金