-1
このコード私は、プラットフォームのアニメーション(上、下)の間の変更のためにUIボタンを使用しますが、起動してもまだ動作していれば、再び動作を開始しますが、 。どのようにアップアニメーションを白に修正してダウンを開始することができますか?unity animation ui button
public Animator anim;
private bool move1;
void Start() {
anim = GetComponent<Animator>();
}
// Update is called once per frame
public void ChangePlatform() {
if (move1==true) {
anim.SetInteger ("animstate",1);
move1 = false;
}else if (move1==false) {
anim.SetInteger ("animstate",2);
move1 = true;
}