// Use this for initialization void Start() { _slideObj = GameObject.Find(panelName); _slideTest = _slideObj.GetComponent <SlideTest> (); }
public void GetFoods(string foodName) { StartCoroutine(GetFoodList(foodName)); slider = GetComponent <SlideTest>(); _nodePrefab = Resources.Load("Prefabs/Node") as GameObject; }