Hi , so my invoke method dos not work
i have checked my spellings and they are all correct but as soon as i put reloadlevel into invoke , unity gives me a waring that the function is declared but never used , does anyone has a solution to this
default:
Invoke("ReloadLevel", 1f);
//ReloadLevel();
break;
void ReloadLevel()
{
int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(currentSceneIndex);
}