I cant get a varibel to Work i have this error

Assets\scrips\CollisionScript.cs(9,17): error CS1061: ‘PlayerController’ does not contain a definition for ‘Enebled’ and no accessible extension method ‘Enebled’ accepting a first argument of type ‘PlayerController’ could be found (are you missing a using directive or an assembly reference?)

My code

}

using UnityEngine;

public class CollisionScript : MonoBehaviour
{
    public PlayerController movment;

    void OnCollisionEnter (Collision collisionInfo)
    {
        movment.Enebled = false;
    }

}

Probably for the same reason your title says “varibel” (variable). It’s likely “Enabled”, not “Enebled”. Typos.

3 Likes

i’am from sweden and i am 10

These are not reasons to violate forum rules. Please do not make duplicate posts, especially just to fix your own typing mistakes.

Go to a the documentation now and see how the word “enabled” is typically spelled.

After that, go to a dictionary and see how “Game Manager” and “Movement” are spelled.

Also, neither of the reasons you cited change this basic fact: software engineering requires 100% accuracy.

I outlined this for you here:

https://forum.unity.com/threads/i-have-an-error-sc0101.1373229/#post-8655552

Please review the rules before posting again, and you should probably go through the tutorials. Closed.