My unity scrpits keeps resetting to the defualt values and i dont seem to know what the issue is

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using UnityEngine;

public class ChangeColour : MonoBehaviour
{
    public Material[] colours;
    public GameObject[] cubes;
    private Renderer[] ren;
    bool mouseDown = false;
    int counter = 6;

    private void Start()
    {
        ren = new Renderer[cubes.Length];
        counter = 1;
        for (int i = 0; i < cubes.Length; i++)
        {
            ren _= cubes*.GetComponent<Renderer>();*_

ren*.sharedMaterial = colours[0];*
ren*.enabled = true;*
}
}
private void FixedUpdate()
{
Debug.Log(counter); // this one debug displays both the counter as 6 and 1 6 is more prominent
if (Input.GetMouseButtonDown(0))
{
mouseDown = true;
}else if (Input.GetMouseButtonUp(0))
{
mouseDown = false;
}
if (mouseDown)
{

}
}

public void ChangeCounter(int newCounter)
{
Debug.Log(newCounter);
counter = newCounter;
}
}

I think there are no issues in this script, I would like to see where you use the function ChangeCounter.