Exemplo n.º 1
0
 public void FreeSSAction(SSAction wait)
 {
     SSAction action = null;
     foreach(SSAction ac in used)
     {
         if (wait.GetInstanceID() == ac.GetInstanceID())
         {
             action = ac;
         }
     }
     if (action!=null)
     {
         action.Reset();
         free.Add(action);
         used.Remove(action);
     }
 }
Exemplo n.º 2
0
    public void FreeSSAction(SSAction act)
    {
        SSAction tmp = null;

        foreach (var item in UsedDisk)
        {
            if (act.GetInstanceID() == item.GetInstanceID())
            {
                tmp = item;
            }
        }
        if (tmp != null)
        {
            tmp.Reset();
            NewDisk.Add(tmp);
            UsedDisk.Remove(tmp);
        }
    }