public void RepositionateFunction(UIFunctionSlot slot, GameObject go) { if (slot.functionLine != null) { go.GetComponent <UIFunctionLine> ().sequenceID = slot.functionLine.sequenceID + 1; go.GetComponent <UIFunctionLine> ().isParallel = true; } go.transform.SetParent(slot.container.transform); }
void IsOverFunctionSlot(UIFunctionSlot _overSlot) { if (overSlot != null && overSlot.gameObject.name == "FunctionSlot_Childs") { overSlot = parent_Slot; } else { overSlot = _overSlot; } }