While loop freeze
Unity freezes in this while loop: FireBall: using UnityEngine; using System.Collections; public class FireBall : MonoBehaviour { %|573926749_1|% %|-2048041834_2|% %|1978211612_3|% %|1179226318_4|% %|-476071733_5|% %|-892526441_6|% %|-1917508315_7|% void Update () { do %|1123891018_10|% %|1433030293_11|% %|-239679391_12|% %|-1433463061_13|% { %|1772615627_15|% %|-194981275_16|% %|1397317542_17|% }
Magic: using UnityEngine; using System.Collections; public class Magic : MonoBehaviour { %|-92300221_18|% %|325405269_19|% %|1310312523_20|% void Start() { anim = GetComponent<Animator>(); %|1773566917_24|% %|46792965_25|% %|1044305088_26|% %|1690007293_27|% { %|-1015671306_29|% %|1142991838_30|% %|-186610250_31|% %|1593146160_32|% %|987449748_33|% %|1204561605_34|% %|835711649_35|% %|2109767193_36|% %|2024749496_37|% %|1012098576_38|% %|1389978564_39|% %|433787792_40|% { %|-860804713_42|% } %|-1601839631_44|% IEnumerator attack() { anim.SetTrigger("MagicAttack"); %|974319347_48|% %|1513188435_49|% %|-1295570364_50|% %|-1436183689_51|% %|-896386294_52|% %|-1611585242_53|% %|679778346_54|% %|-1965708210_55|% }
You should provide us the code of that while loop.
Your answer
Follow this Question
Related Questions
Why does this while loop freeze unity? 1 Answer
[Solved]Cant Find loop that freezes Unity 2 Answers
While Loop not working when clicked on Play button 1 Answer
Do-While Loop not working 1 Answer