示例#1
0
 public void RemoveLoadingManager(SimvaLoadingManager manager)
 {
     if (manager)
     {
         // If a delegate is not present the method gets ignored
         loadingListeners -= manager.IsLoading;
     }
 }
示例#2
0
 public void AddLoadingManager(SimvaLoadingManager manager)
 {
     if (manager)
     {
         // To make sure we only have one instance of a notify per manager
         // We first remove (as it is ignored if not present)
         loadingListeners -= manager.IsLoading;
         // Then we add it
         loadingListeners += manager.IsLoading;
     }
 }