Beispiel #1
0
 public void PotionBrewed(CauldronContent.Recipe recipe)
 {
     if (recipe != null)
     {
         SpawnerCorrect.Prefab  = PotionPrefab;
         SpawnerCorrect.enabled = true;
         SpawnerCorrect.Spawn();
     }
     else
     {
         SpawnerIncorrect.Prefab  = BadPotionPrefab;
         SpawnerIncorrect.enabled = true;
         SpawnerIncorrect.Spawn();
     }
 }
        void OnBrew(CauldronContent.Recipe recipe)
        {
            //Robot feliz
            if (recipe != null)
            {
                CorrectPotion.Value = true;
            }
            //Robot triste
            else
            {
                CorrectPotion.Value = false;
            }

            //La poción se ha cocinado
            potionBrewed = true;
        }