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); }
// visual // sound public void SetupClient(Game.Models.ClientMeta meta) { clientMeta = meta; }