/// <summary> /// /// </summary> /// <param name="nodeToSet"></param> private void SetNodeToCurrent(BaseSelectionNode nodeToSet) { if (nodeToSet == null) { return; } if (currentBaseSelectionNode != null) { currentBaseSelectionNode.enabled = false; } if (selectionPointer != null) { selectionPointer.SetGoalPositionToMoveTowards(nodeToSet.transform.position); } nodeToSet.enabled = true; currentBaseSelectionNode = nodeToSet; }
private void Awake() { currentBaseSelectionNode = initialNode; OpenSelectionMenu(); }