コード例 #1
0
    //public void Start () {

    //}

    public void makeNewAttributeNode()
    {
        GameObject       newNode      = (GameObject)Instantiate(attributePrefab);
        SetAttributeNode nodeSettings = newNode.GetComponent <SetAttributeNode>();

        nodeSettings.setUpNode(lineCam, connectCallObject);
        nodeSettings.setEnlosingType(enclosingTypeSetter);
        newNode.transform.SetParent(worldCanvas.transform, false);
        newNode.transform.position = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2f, Screen.height / 2f, 0));
        allNodes.Add(newNode);
    }