Example #1
0
 void OnSelectionChange()
 {
     //if (Selection.activeInstanceID != 0)
     if (UNotesHInventory.HasNote(currSelectedInstanceID)) // if we deselect a (previously selected) note, consolidate
     {
         UNotesHInventory.ConsolidateRequest();
     }
     InitWithSelectedNote();
     Refresh();
     Refresh();
     currSelectedInstanceID = Selection.activeInstanceID; // update currently selected instance id
 }