How to fix a error about definition?

Hi! I’m in project are trying to use a script.
And this script TP_Animator has a error:

‘TP_Controller’ does not contain a definition for ‘CharacterController’

Code:

if (TP_Controller.CharacterController.isGrounded)
{

How could I fix this error?

Create a variable called CharacterController and guessing from your useage you propably need to assign a CharacterController script to it.
Keep in mind though that calling the variable the same as the class is propably not a good idea :wink:

So maybe use a lower case ‘c’ like ‘characterController’ in your variablename.

Thanks! I change the name. now I’m using charCharacter.

Code:

if (TP_Controller.CharController.isGrounded)
{

Works!