Beispiel #1
0
    public void ObjectSelected(ModalObject newObject)
    {
        if (selectedObject != newObject)
        {
            if (selectedObject)
            {
                selectedObject.Deselected();
            }

            selectedObject = newObject;

            selectedObject.Selected();
        }
    }
Beispiel #2
0
 public void StartNode(ModalObject obj)
 {
     objectToGiveLookPoint = obj;
     objectToGiveLookPoint.Deselected();
     currentNodeCursor = Instantiate(nodeCursorPrefab);
 }