Example #1
0
 public void OnEquipmentChangeSelectionChanged(SelectionChangedEventArgs e)
 {
     if (e.AddedItems.Count > 0)
     {
         EquipmentChange selectedEquipmentChange = (EquipmentChange)e.AddedItems[0];
         SelectedEquipmentChangeId  = selectedEquipmentChange.EquipmentChangeId;
         AnyEquipmentChangeSelected = true;
     }
     else
     {
         AnyEquipmentChangeSelected = false;
     }
 }
 // Use this for initialization
 void Start()
 {
     equipmentchange = FindObjectOfType <EquipmentChange>();
 }
 // Use this for initialization
 void Start()
 {
     Joint           = GetComponent <DistanceJoint2D>();
     Joint.enabled   = false;
     equipmentchange = FindObjectOfType <EquipmentChange>();
 }