public void AddFunction(AmiClass amiClass, Transform _container) { UIFunctionLine newFunctionLine = Instantiate(functionLine); newFunctionLine.gameObject.SetActive(true); newFunctionLine.transform.SetParent(_container); newFunctionLine.transform.localScale = Vector3.one; //print ("argumentValues " + amiClass.argumentValues.Count + " _container " + _container); newFunctionLine.Init(amiClass); if (_container.name == "FunctionSlot_Childs") { newFunctionLine.SetParallelOf(_container.GetComponent <UIFunctionSlot>().functionLine); } }
public void Init(UIFunctionLine line, AmiClass.types arg, int id) { this.id = id; this.arg = arg; this.line = line; }
public void SetParallelOf(UIFunctionLine _parallelOf) { this.isParallel = true; }