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?)
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).
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).