コード例 #1
0
    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);
    }
コード例 #2
0
 new void init()
 {
     base.init();
     variableNode = Resources.Load <EditorVariableNode>("EditorVariableNode");
     selectorNode = Resources.Load <EditorSelectorNode>("EditorSelectorNode");
 }
コード例 #3
0
 new void init()
 {
     base.init ();
     variableNode = Resources.Load<EditorVariableNode>("EditorVariableNode");
     selectorNode = Resources.Load<EditorSelectorNode>("EditorSelectorNode");
 }