What is wrong here ? C#

i try to access boolean C# from another C#
but this time it is not working well
give me error

public Ball_lev_3 finishoflevel  ;
   
   
    // Update is called once per frame
    void Start ()
    {

    }
    void Update () {
   

        if ( finishoflevel.ShowTheend == true )
        {
   
           
            Instantiate(Taba2_Tayyer ,transform.position ,Quaternion.identity) ;
            finishoflevel.ShowTheend = false ;
        }
        else
        {}

and that is the error
ype Ball_lev_3' does not contain a definition for ShowTheend’ and no extension method ShowTheend' of type Ball_lev_3’ could be found (are you missing a using directive or an assembly reference?)

Post the code for Ball_lev_3, particularly the lines that contain the definition for ShowTheend.

it is just
public bool showtheend ;

If it’s really showtheend, and not ShowTheend, then that’s your problem. C# is case sensitive. A variable named Foo is not the same as a variable named foo. Make sure that the names of the variable match in both spelling and casing (i.e. capital and small letters).

You either need to make it static or have a reference to the other script in the one you are trying to call the bool from.

No -_-
it is correct i just write it to tell you in general
i didin’t write it to care for capital or not

There is no “in general” when asking specific coding question. If you want help then post your source code for Ball_lev_3 as originally requested. People can’t read your mind but they might be able to read your code (but just barely by the looks of it).

i solved it
it was monodevelop problem
the scripting didin’t read the public bool
that is why
when i restart the programe
it is working
thanks :smile: