how do i fix this..error CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)
error CS0266: Cannot implicitly convert type object' to
bool'. An explicit conversion exists (are you missing a cast?) this is my code line'
void ChangeSpeed() { currentMoveSet = (int)cc.animator.GetFloat("MoveSet_ID"); var strafing = cc.isStrafing; if (strafing)
You probably have a syntax error somewhere that prevents the compiler from figuring out the type of some expression and decides it must be just an object.
Can't say more without knowing exactly what line the error is on and seeing more code (what is the type of cc and isStrafing?)
Your answer
Follow this Question
Related Questions
error CS0118 'charanim.CameraTurn' is a field but a 'type' was 'expected' 1 Answer
Unity 5.6 Update Exceptions 0 Answers
Why isnt the Unity tutorial working for me? 2 Answers
need help with errors,Need help with unity version and errors 1 Answer
Multiple errors after updating asset package from store 0 Answers