public void AcceptInput() { if (meal.Count >= 3) { if (meals != null) { var a = meal.Dequeue(); var b = meal.Dequeue(); var c = meal.Dequeue(); string mealTitle = meals.Query(a, b, c); if (mealTitle != "") { Debug.Log(string.Format("made {0}", mealTitle)); var pos = this.transform.position + Vector3.up; MealToaster.SToast(pos, mealTitle); } } Debug.Log(string.Format("meal done: {0}", meal.ToList())); Clear(); } else { comboCool.Trigger(); } acceptInput = true; }
void Start() { _instance = this; _ttoast = GetComponent <TextToast>(); }