Esempio n. 1
0
    void Update()
    {
        SelectionPotion.sprite = potionselectionlist [potionSpot].PotionGraphic;
        Ingredient1.enabled    = true;
        Ingredient2.enabled    = true;
        Ingredient3.enabled    = true;
        Ingredient4.enabled    = true;
        Ingredient5.enabled    = true;
        if (potionselectionlist [potionSpot].Recipe.Count >= 1)
        {
            Ingredient1.sprite = potionselectionlist [potionSpot].RecipeIngredient1.IngredientGraphic;
        }
        else
        {
            Ingredient1.enabled = false;
        }

        if (potionselectionlist [potionSpot].Recipe.Count >= 2)
        {
            Ingredient2.sprite = potionselectionlist [potionSpot].RecipeIngredient2.IngredientGraphic;
        }
        else
        {
            Ingredient2.enabled = false;
        }

        if (potionselectionlist [potionSpot].Recipe.Count >= 3)
        {
            Ingredient3.sprite = potionselectionlist [potionSpot].RecipeIngredient3.IngredientGraphic;
        }
        else
        {
            Ingredient3.enabled = false;
        }

        if (potionselectionlist [potionSpot].Recipe.Count >= 4)
        {
            Ingredient4.sprite = potionselectionlist [potionSpot].RecipeIngredient4.IngredientGraphic;
        }
        else
        {
            Ingredient4.enabled = false;
        }

        if (potionselectionlist [potionSpot].Recipe.Count >= 5)
        {
            Ingredient5.sprite = potionselectionlist [potionSpot].RecipeIngredient5.IngredientGraphic;
        }
        else
        {
            Ingredient5.enabled = false;
        }

        PotionName.text   = potionselectionlist [potionSpot].PotionName;
        PotionDesc.text   = potionselectionlist [potionSpot].PotionDesc;
        CurrentPotion     = potionselectionlist [potionSpot];
        RecipeIngredients = potionselectionlist [potionSpot].Recipe;
    }
Esempio n. 2
0
 void Start()
 {
     PotionSelectionScript = GameObject.Find("Brewing_GUI").GetComponent <PotionSelection> ();
     Brewing.gameObject.SetActive(false);
     PotionObtained    = true;
     CurrentPotionCopy = PotionSelectionScript.CurrentPotion;
     RequestComplete   = false;
     Portal.gameObject.SetActive(false);
     GeneralStore.gameObject.SetActive(false);
     brewStat = GameObject.Find("Brewing_Station").GetComponent <OpenBrewingGUI>();
 }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        MoneyReward     = Random.Range(200, 1000);
        RewardText.text = MoneyReward.ToString();
        Invent          = GameObject.Find("Inventory_System").GetComponent <InventorySystem> ();
        Money           = GameObject.Find("Money_System").GetComponent <MoneySystem> ();
        //NPC Details
        NPC_Name.text       = NPC_NameList [Random.Range(0, NPC_NameList.Count)];
        NPC_Race.text       = NPC_RaceList [Random.Range(0, NPC_RaceList.Count)];
        NPC_Occupation.text = NPC_OccupationList [Random.Range(0, NPC_OccupationList.Count)];
        NPC_Hometown.text   = NPC_HometownList [Random.Range(0, NPC_HometownList.Count)];

        //Potion Details
        Potion              = Requested_Potion [Random.Range(0, Requested_Potion.Count)];
        Potion_Name.text    = Potion.PotionName;
        Potion_Image.sprite = Potion.PotionGraphic;


        //Request
        Request_Text.text = Potion.Requests [Random.Range(0, Potion.Requests.Count)];
    }
Esempio n. 4
0
 void Update()
 {
     CurrentPotionCopy = PotionSelectionScript.CurrentPotion;
 }