Log in or register to post comments

Accessing Static Variables

September 27, 2018 - 1:31pm #1

I have a script that has a static class that holds player data.

When I am trying to access the script from other scripts it works but when i try to access the script from Vuforia DefaultTrackableEventHandler it says it does not exist in the current context.

 

public static class PlayerData

{

    private static bool isVisible = false;

public static bool ISVISIBLE

    {

        get

        {

            return isVisible;

        }

        set

        {

            isVisible= value;

        }

    }

}

Log in or register to post comments