Exemple #1
0
    public Platter newPlatter()
    {
        Platter platter = Platter.CreateInstance <Platter>();

        platter.Foods[0] = getRandomFood();
        for (int i = 1; i < 4; i++)
        {
            if (Random.Range(0f, 1f) > 0.7f)
            {
                platter.Foods[i] = getRandomFood();
            }
        }
        return(platter);
    }