言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Animation.IsPlaying

Switch to Manual
public function IsPlaying(name: string): bool;

Description

/name/ という名のアニメーションが再生中かどうかを確認します。

	// Plays an animation only if we are not playing it already.
	function OnMouseEnter() {
		if (!animation.IsPlaying("mouseOverEffect"))
			animation.Play("mouseOverEffect");
	}