示例#1
0
 public bool RemoveSecundarySelectionContainsListner(GameObject go, SelectionContains listener)
 {
     if (!SecundarySelectionContainsListeners.ContainsKey(go))
     {
         return(false);
     }
     return(SecundarySelectionContainsListeners[go].Remove(listener));
 }
示例#2
0
 /// <summary>
 /// Adds a listner for an gameobject. If this gameobject is selected, the listner will be invoked
 /// </summary>
 /// <param name="go">the gameobject on which the listener should be registered</param>
 /// <param name="listener">the listener it self</param>
 /// <returns>the SelectionContains delgate which was given to this function</returns>
 public SelectionContains AddSecundarySelectionContainsListener(GameObject go, SelectionContains listener)
 {
     if (!SecundarySelectionContainsListeners.ContainsKey(go))
     {
         SecundarySelectionContainsListeners.Add(go, new List <SelectionContains>());
     }
     SecundarySelectionContainsListeners[go].Add(listener);
     return(listener);
 }