Global Win Variable

I’m trying to add a global variable in order to define when a user has “won” but it does not seem to be working.
Here is my global variable code:

using UnityEngine;
using System.Collections;

static class state	{
	static bool win = false;
}

And here is my callup:

using UnityEngine;
using System.Collections;

public class ballEndzone : MonoBehaviour 
{
	void OnTriggerExit (Collider sphere)
	{
		if (sphere.tag == "Ball") {
			transform.collider.isTrigger = false;
			state.win = true
		}
	}
}

I have two issues. Firstly, the callup of state.win throws up an error saying “‘state’ does not contain a definition for ‘win’”
And secondly, how would I then use the change in the boolean to trigger an action, and what script should said action trigger be stored in?

Scope:

Variables in c# default to private scope.

If you want to allow access from other classes then you must explicitly declare it public i.e.:

public static bool win = false;

Note that in unityscript this is reversed (default to public scope). There is no harm in explicitly declaring scope to improve clarity in either case.

Actions:

If you want to trigger some other action you may be better of implementing a public method:

using UnityEngine;
using System.Collections;
 
static class state  {
    static bool win = false;

    static public void PlayerWins() {
        win = true;
        // some other actions
    }
}