public void CreateOperatorNodeClicked() { Debug.Log("CreateOperatorNodeClicked"); EditorSelectorNode node = Instantiate <EditorSelectorNode>(selectorNode); node.gameObject.transform.position = this.transform.position; node.gameObject.transform.SetParent(this.transform.parent); node.gameObject.SetActive(true); //node.ChangeState(EditorNodeState.DraggingStarted); Destroy(this.gameObject); }
new void init() { base.init(); variableNode = Resources.Load <EditorVariableNode>("EditorVariableNode"); selectorNode = Resources.Load <EditorSelectorNode>("EditorSelectorNode"); }
new void init() { base.init (); variableNode = Resources.Load<EditorVariableNode>("EditorVariableNode"); selectorNode = Resources.Load<EditorSelectorNode>("EditorSelectorNode"); }