【3Dゲームエンジン】Unity質問スレッド10at GAMEDEV
【3Dゲームエンジン】Unity質問スレッド10 - 暇つぶし2ch143:名前は開発中のものです。
14/07/02 02:25:46.30 +FRMTuKVe
>>136
アドバイスありがとうございます。
下記のような形で書いてみましたが、
"motion01"が再生されないですね。。。
自分でも調べてみます。
また、"motion00"はもともと静止モーションなので
1F再生でも大丈夫です。

var obj:GameObject;
var script:window_control;

function Start () {
if(!obj){
obj=GameObject.FindGameObjectWithTag("untagget");
}
script=obj.GetComponent("window_control");
}

function Update () {
if(script.open_switch==true){
animation.Play("motion_01");
}
else{
yield StartCoroutine("Wait");
}
}

function Wait () {
yield WaitForSeconds(2.0);
animation.Play("motion_00");
}


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch