public void SetSelectedNode(NodeComponent myNode) { selectedNode = myNode; SpriteComponent nodeSprite = myNode._parent.GetDrawable("SpriteComponent") as SpriteComponent; SpriteComponent pointerSprite = pointerEntity.GetDrawable("SpriteComponent") as SpriteComponent; PointerComponent point = pointerEntity.GetComponent("PointerComponent") as PointerComponent; Vector2 offset = point.GetOffset(); pointerSprite.position = nodeSprite.position + offset; }
public void AddNode(NodeComponent myNode) { nodeList.Add(myNode); nodeEntityList.Add(myNode._parent); }
//Uses the specificed node public void SelectNode(NodeComponent myNode) { }