public void Setup(Game.Models.PizzaMeta pMeta) { Debug.Log("SetupPizza " + pMeta); pizzaMeta = pMeta; // GameObject gobject = MainLogic.GetMainLogic().GetEntityManager().GetEntity(pizzaMeta.assetName); // gobject.SetActive(true); // pizzaVisual = gobject.GetComponent<PizzaVisual>(); SetupIngredients(); SetupGarbage(); }
void MoveToNextClient() { currClientIndex++; Debug.Log("MoveToNextClient " + currClientIndex); // return object to pool ResetObjects(); Game.Models.ClientMeta cmeta = clients[currClientIndex]; currClient.SetupClient(cmeta); // int cpx = currClient.GetPizzaComplexity(); // Game.Models.PizzaMeta pMeta = MainLogic.GetMainLogic().GetItemManager().GetRandomPizza(cpx); Game.Models.PizzaMeta pMeta = MainLogic.GetMainLogic().GetItemManager().GetRandomPizza(); currPizza.Setup(pMeta); // var visual = currPizza.GetVisual(); // visual.transform.SetParent(pizzaParent); SetTimer(cmeta.timer); }