I am making a difficult Super Mario World like game where you have quick respawns when you die. However, if I hold the Run button when reloading the scene, it is not detected after the scene loads.
private void Awake() {
if(Input.GetButton("Sprint")){
Debug.Log("GetButton @ Awake()");
}
if(Input.GetButtonDown("Sprint")){
Debug.Log("GetButtonDown @ Awake()");
}
}
void Start()
{
if(Input.GetButton("Sprint")){
Debug.Log("GetButton @ Start()");
}
if(Input.GetButtonDown("Sprint")){
Debug.Log("GetButtonDown @ Start()");
}
}
None of this registers on scene load.
Any ideas?
Thanks! Same issue but only with a controller keyboard worked fine - fixed by your solution.
– okamisen