Multiple Method Calls

Hello so i currently have a question about my hitCollider Method

public void Check(Vector3 myCenter, float myRadius)
{

	Collider[] hitColliders = Physics.OverlapSphere(myCenter, myRadius);
	int i = 0;
	if(i < hitColliders.Length)
	{
		Plains = GameObject.Find("Plains");
		Tile t = (Tile)Plains.GetComponent("Tile");
			t.AdjustCurrentValue1(+1);
	}
}

What its doing right now is checking to see if there are any objects within the Spheres radius and if so, it calls a method from another script and adjusts its variable. Well all this can do right now is adjust the variable of one script. Now say there are multiple objects in the spheres radius which there will be, how could i adjust the code so that it calls the method from each object and adjusts each ones variable. I was thinking of adjusting the GameObject.Find to something like tag.Find(if theres even a command for that) so that it would search for all objects with that tag. But I’m not sure if there is such a command. I currently have it working with just one object but im going to need multiple objects since what is going to be happening is that whatever tiles are in its radius are going to light up blue to let the player know his movement area. So this code has to adjust the variable in each of the tiles so that they can light up blue.

I have to guess a bit here. I’m assuming that your OverlapSphere() call is finding object the ‘Tile’ script attached. If so, you can do something like:

Collider[] hitColliders = Physics.OverlapSphere(myCenter, myRadius);
foreach (Collider col in hitColliders) {
	Tile t = col.GetComponent<Tile>();

	if (t != null) {
		t.AdujstCurrentValue1(1);
	}
}

I don’t know what the ‘+’ is the ‘+1’ is all about. In addition, don’t use the string version of ‘GetComponent’. Use the generic version as I’ve done here.