Esempio n. 1
0
    public void AddBranch(Vector3 position, int rank)
    {
        GameObject newBranch = Instantiate(TreeSystem2._debug_staticTreeNodePrefab);

        newBranch.transform.position = position;
        TreeNode2 newBranchNode = newBranch.GetComponent <TreeNode2>();

        newBranchNode.Set(position, this, (byte)rank);
        _branchingNodes.Add(newBranchNode);
    }