Search Unity

Animation flickers when combining with script

Discussion in 'Animation' started by pingerdot, Oct 16, 2019.

  1. pingerdot

    pingerdot

    Joined:
    Aug 19, 2019
    Posts:
    5
    https://hastebin.com/xuqekudede.cs

    Hey there, this has been bugging me for a day and I couldn't have figured out how to fix this issue.
    Basically I have an Input field and a text which is the (_ _ _ _ _ _) lines in the picture, and when a user types in the code if it's wrong it will play the animation and move the wrong code, but as you can see in the gyazo it gives kind of flicker and I'm pretty sure it's these two lines that are responsible for that

    Code (CSharp):
    1.   if (called)
    2.             {
    3.                 all.Remove(all[0]);
    4.                 all.Add("______");
    5.             }

    https://gyazo.com/2ddff7e124c976291b55fad0fc4094bf