public void OnDishFin(Order order) { // Creating instances for Restaurant var finDish = actualDish.Finalize(); var orderData = order.TurnToData(); // Fin corrections Destroy(actualDish); actualDish = null; // todo anim; StartCoroutine(DishFinalization(finDish.transform, 1, () => GameLogic.Restaurant.RecieveDish(finDish, orderData) // Send to Restaurant )); }
public void AddIngredient(List <InputManager.Swipe> swipes) { if (actualDish == null) { actualDish = DishBuilder.Create(); actualDish.transform.position = dishPos; } var ingredient = Ingredient.Create(swipes); if (ingredient == null) { return; } actualDish.AddIngredient(ingredient, gap); }