private static Node Get(int i, float x, float y) { Node retn = null; if (inactive.Count > 0) { retn = inactive.RemoveLast(); } else { retn = new Node(i, x, y); } retn.steiner = false; retn.next = default; retn.prev = default; retn.prevZ = default; retn.nextZ = default; retn.z = default; retn.i = i; retn.x = x; retn.y = y; active.Add(retn); return(retn); }
public void GoBack() { if (historyIndex == 0) { return; } string lastRoute = m_HistoryStack.RemoveLast(); m_ForwardHistoryStack.Add(lastRoute); string route = m_HistoryStack.RemoveLast(); historyIndex = historyIndex - 2; GoTo(route, true); }
public void GoForwards() { if (!CanGoForwards) { return; } GoTo(m_ForwardHistoryStack.RemoveLast(), true); }
protected override LinqCompiler CreateNested() { if (s_CompilerPool.size == 0) { return(new UIForiaLinqCompiler()); } return(s_CompilerPool.RemoveLast()); }
public VertigoMesh GetStatic() { VertigoMesh retn = null; if (staticPool.Count > 0) { retn = staticPool.RemoveLast(); } else { retn = new VertigoMesh(this, false); } retn.isActive = true; return(retn); }
public VertigoMesh GetDynamic() { VertigoMesh retn = null; if (dynamicPool.Count > 0) { retn = dynamicPool.RemoveLast(); } else { retn = new VertigoMesh(this, true); } retn.isActive = true; return(retn); }
public static UIForiaData Get() { UIForiaData retn = null; if (s_Pool.size > 0) { retn = s_Pool.RemoveLast(); } else { retn = new UIForiaData(); } retn.isActive = true; return(retn); }
public PooledMesh Get() { PooledMesh retn = null; if (dynamicPool.Count > 0) { retn = dynamicPool.RemoveLast(); } else { retn = new PooledMesh(this); } retn.isActive = true; return(retn); }
public VertigoMaterial GetInstance() { VertigoMaterial retn = null; if (instances.Count > 0) { retn = instances.RemoveLast(); } else { retn = new VertigoMaterial(this); } retn.isActive = true; return(retn); }