Beispiel #1
0
    public Attraction GetAttraction()
    {
        Attraction attraction = attractions[Random.Range(0, numberOfAttractions)];

        if (attraction.CanBeJoined())
        {
            return(attraction);
        }
        else
        {
            return(GetAttraction());
        }
    }