Наследование: Definition, IRecipe
Пример #1
0
        void Start()
        {
            var playService = ServiceLocator.Get<PlayService> ();
            PlayBackgroundSound ();
            if (ComponentType == ComponentType.None) {

                _pizzaDefinition = playService.NewTurnament ();

                TournamentStart.gameObject.SetActive (true);
                TournamentStart.Init (_pizzaDefinition);

                GetComponentInChildren<UIIngredientsGrid> ().Init ();

            } else {

                playService.StartCooking (ComponentType);
                InitUI ();
            }
        }
Пример #2
0
 public void Init(PizzaDefinition pizzaDefinition)
 {
     Description.text = pizzaDefinition.Description;
 }