Ejemplo n.º 1
0
 public void unroop()
 {
     if (next != null && next.Equals(this))
         next = null;
     if (prev != null && prev.Equals(this))
         prev = null;
 }
Ejemplo n.º 2
0
 public void add()
 {
     unroop();
     if (GameManager.playerScript.first == null && GameManager.playerScript.end == null)
     {
         GameManager.playerScript.first = this;
         GameManager.playerScript.end = this;
     }
     else
     {
         prev = GameManager.playerScript.end;
         GameManager.playerScript.end.next = this;
         GameManager.playerScript.end = this;
     }
 }