public void PushContext(UiContext context) { // don't add if it is the same context if (0 < Depth && CurrentContext.name == context.name) { return; } context.SetActive(true); context.SetOrder(Depth); _contextStack.Push(context); Depth++; }