Answer the question
In order to leave comments, you need to log in
', `[" /> `
Unity sees the error but vs doesn't?
Unity gives errors
"Unexpected symbol `void' in class, struct, or interface member declaration(points to void in Market method)"
"Unexpected symbol `.', expecting `)', `,', `;', `[' , or `='(points to .Launcher in the Market method)"
Visual studio quietly saves the script without underlining anything or seeing an error.
Part of the code with an error.
public void Sound_3()
{
gameObject.SetActive(false);
sound_3.SetActive(true);
}
public async void Market()
{
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + Windows.ApplicationModel.Store.CurrentApp.AppId));
}
public void Back_time()
{
gameObject.SetActive(false);
main.SetActive(true);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question