if (animation.enabled = true)
{ something.SetActive(true);}
Animation and something is just a random text wrote in C#. animation is Animator ; something is GameObject. But script sets active this animator first XD
if (animation.enabled = true)
{ something.SetActive(true);}
Animation and something is just a random text wrote in C#. animation is Animator ; something is GameObject. But script sets active this animator first XD
In programming “=” initializes, “==” compares.
use if(animation.enabled == true)
or simply if(animation.enabled)
instead