public void CreateVariableNodeClicked() { Debug.Log("CreateVariableNodeClicked"); EditorVariableNode node = Instantiate <EditorVariableNode>(variableNode); 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"); }