Character Powerup Functions in C++

I’m having trouble getting these functions to work. Essentially what they do is change either the character mesh scale or movement speed and add a material/color upon interaction.


Functions in the character cpp file


Switch/case where the functions are referenced and casted to the character