Esempio n. 1
0
    public string openerType; //string containing the typeof object that is using the loader [recipe,mash tun,etc.]
    // Start is called before the first frame update
    void Start()
    {
        //Debug.Log(openerType);
        switch (openerType)
        {
        case "recipe":
            recipePlannerController = this.GetComponentInParent <RecipePlannerController>();
            break;

        case "mash tun":
            mashTun = GameObject.Find("MashTun").GetComponent <MashTunController>();
            break;
        }
        companyController = GameObject.Find("CompanyController").GetComponent <CompanyController>();
        savedRecipes      = companyController.recipes;
        SetupDropDownList();
    }
 public void Start()
 {
     recipePlannerController = GameObject.Find("RecipePanel").GetComponent <RecipePlannerController>();
     thisSlider = gameObject.GetComponent <Slider>();
     thisSlider.onValueChanged.AddListener(delegate { ValueChangeCheck(); });
 }