Why is this starting active??

I have no clue why this isn’t working. The shop is active when I start play mode. I’m steaming this and no one has any clue. I saved it too, forgot to save for the photo still isn’t working

int points;
public Text PointsCounter;
public GameObject doggo;
public GameObject Shop;
private bool HasBeenActive;
private int WorkerLvl = 0;
int pointsperclick = 1;
int pointspersecond = 0;
int WorkerCost;
int DblMoneyCost;

void Start()
{
    doggo.transform.Translate(0, 0, -1);
    points = 0;
    HasBeenActive = false;
    Shop.SetActive(false);
}

public void WorkerBtn()
{
    WorkerLvl += 1;
}

void Update()
{
    PointsCounter.text = points.ToString();
    Debug.Log (points);
    // Button if statements. 
    if (WorkerLvl >= 1)
    {
        points += pointspersecond;

        if (WorkerLvl == 1)
        {
            pointspersecond = 1;
        }
        
    }

    if (Input.GetKeyDown(KeyCode.Mouse0))
    {
        transform.localScale += new Vector3(-0.1f, -0.1f, 0);
        points += pointsperclick;    
    }
    if (Input.GetKeyUp(KeyCode.Mouse0))
    {
        transform.localScale += new Vector3(0.1f, 0.1f, 0);
    }
    if (points >= 100 && HasBeenActive == false);
    {
        Shop.SetActive(true);
        HasBeenActive = true;
    }
    if (HasBeenActive == true)
    {
        Shop.SetActive(true);
    }
}

}

How fast are your points going up in Debug.Log? My guess is that your points are going passed 100 almost instantly because its not regulated by a timescale. I think line 34 is where your problems at, your points are up a certain amount every frame which can be very fast. I’d recommend you times your points by Time.deltaTime and see if that helps.

You have a semicolon after your If Statement in line 51.

139384-download-8.jpg

is the shop active in your editor? might be as simple as setting it inactive and saving the scene before you hit the play at the top of the editor.

@surfuay yeah, it’s set inactive, thank god I forgot about this post my code got corrupted lol. I have no clue why it’s not working still.

is the shop active in your editor? might be as simple as setting it inactive and saving the scene before you hit the play at the top of the editor.

if still need help email me (:
shaysapozhnikov@gmail.com