Exemplo n.º 1
0
Arquivo: Main.cs Projeto: MrEk0/RPG
        private void Update()
        {
            if (Input.GetKeyDown(KeyCode.Space))
            {
                Merging     merging     = new Merging();
                Evaporation evaporation = new Evaporation();
                Heating     heating     = new Heating();

                MultichefFacade facade = new MultichefFacade(merging, evaporation, heating);

                Client client = new Client();
                client.Cooking(facade);
            }
        }
Exemplo n.º 2
0
 public void Cooking(MultichefFacade facade)
 {
     facade.Start();
     facade.Finish();
 }