예제 #1
0
	public int EvalCup(CupType _teaCup)
	{
		if (_teaCup == cup)
		{
			return FULL_MARKS;
		}
		return 0;
	}
예제 #2
0
	public void Randomise()
	{
		temperature = Random.Range(0,3)*20 + 10; // 10, 30, 50 (0-60)
		type = (TeaType) UnityEngine.Random.Range(0,(int)TeaType.NUM);
		strength = Random.Range(0,3)*20 + 10; // 10, 30, 50 (0-60)
		cup = (CupType) UnityEngine.Random.Range(0,(int)CupType.NUM);
		sugar = Random.Range(0,3)*2 + 1; // 1, 3, 5 (0-6)
	}