Exemplo n.º 1
0
 public void Pop(string key)
 {
     if (Contains(key))
     {
         ViewCachedData viewCachedData = optimizedViews[key];
         optimizedViews.Remove(key);
         viewCachedData.RemoveFromOptimizer(transform);
         Services.GetService <IConsoleService>().AddOnScreenText("generators showed");
     }
 }
Exemplo n.º 2
0
 public void Push(Transform targetTransform)
 {
     if (!Contains(targetTransform))
     {
         if (targetTransform.parent != transform)
         {
             ViewCachedData viewCachedData = new ViewCachedData(targetTransform);
             optimizedViews.Add(viewCachedData.Key, viewCachedData);
             viewCachedData.AddToOptimizer(transform);
             Services.GetService <IConsoleService>().AddOnScreenText("generators hided");
         }
     }
 }