Beispiel #1
0
 /// <summary>
 /// Removes callback from a button and manager from a dictionary if it does exist already
 /// </summary>
 public void RemoveOnReloadListener(IHotManager manager)
 {
     if (managers.Contains(manager))
     {
         button.remove_OnBtnPressCallback((Action <int>)manager.OnHotReload);
         managers.Remove(manager);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Adds callback to a button and manager to a dictionary if it doesn't exist already
 /// </summary>
 public void AddOnReloadListener(IHotManager manager)
 {
     if (!managers.Contains(manager))
     {
         button.add_OnBtnPressCallback((Action <int>)manager.OnHotReload);
         managers.Add(manager);
     }
 }