Question by
pinkyking256 · Jul 01, 2020 at 09:07 PM ·
2dscripting problem2d gamebutton trigger events
Input/Animation works fine in Play (Editor) but not in the build
I have a pretty simple script:
public Animator anim;
void Start()
{
}
void Update()
{
if (Input.GetKeyDown("return")){
play();
}
}
void play()
{
anim.SetTrigger("playbutton");
}
It works wonders in the editor window, but when I build and run, absolutely nothing happens. It loads the scene just fine, but the button inputs don't seem to be getting through.
Comment