Animation State not working
hi, animation state not changing even parameter changed. Script used :
using UnityEngine;
using System.Collections;
public class AnimState : MonoBehaviour {
Animator anim;
void Start()
{
anim = gameObject.GetComponent<Animator>();
}
void Update () {
if (DropManager.gameOver) {
anim.SetBool("go", true);
}
}
}
Answer by PhantomSarcasm · Jul 18, 2016 at 01:38 PM
pparently the code is right, I do not encounter problems. quisas is esterno a problem such as: -first checks if a print is entering the conditional if. -second could you see if you're writing well bool animation "go", quisas is different. do not take it wrong sometimes those things happen. -third check that your variable "drogmanager.gameover this to" true ", I repeat, do not take this the wrong way, one tends to forget things when this a little stressed. -and nothing more I use in my print or conditional debug.log to verify that they are entering then I delete them to avoid more lines... :v :v :v :v
Your answer
Follow this Question
Related Questions
I can't see or access a state in the Animation Controler 1 Answer
Character rolls forward,but slides back after animation 2 Answers
Logic for a lot of animations 0 Answers
Animation Trigger (Rpg Kit) 1 Answer
i just wanna know how to make this initial position to be a default value?please help me 0 Answers