unity got freezed | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

7th Nov 2019, 9:54 PM
rym
rym - avatar
2 Answers
0
About `invoke`, call it this way and see if it works. Invoke(new Action(togeUp));
7th Nov 2019, 11:56 PM
o.gak
o.gak - avatar
0
And you are passing a parameter(`1000f`) while invoking. `Invoke("togeUp", 1000f);` But you method don’t receive any parameters. 'void togeUp()'
8th Nov 2019, 12:05 AM
o.gak
o.gak - avatar