unity got freezed
i wrote this code as a script in unity. when i clicked “play”, unity stopped working. i tried to play without this script and unity worked correctly so im sure that this script has some problems but i cant find it out. please teach me where should i fix. https://code.sololearn.com/crHoK37oyy11/?ref=app
About `invoke`, call it this way and see if it works. Invoke(new Action(togeUp));
And you are passing a parameter(`1000f`) while invoking. `Invoke("togeUp", 1000f);` But you method don’t receive any parameters. 'void togeUp()'