public void ObjectSelected(ModalObject newObject) { if (selectedObject != newObject) { if (selectedObject) { selectedObject.Deselected(); } selectedObject = newObject; selectedObject.Selected(); } }
public void StartNode(ModalObject obj) { objectToGiveLookPoint = obj; objectToGiveLookPoint.Deselected(); currentNodeCursor = Instantiate(nodeCursorPrefab); }