Beispiel #1
0
    private idleState()
    {
        if (instance != null)
        {
            return;
        }

        instance = this;
    }
Beispiel #2
0
    // Constructor.
    private idleState()
    {
        // If our state already exists, return null.
        if (instance != null)
        {
            return;
        }

        // Else, set the instance to one instance of the state.
        instance = this;
    }