public void Prepend(BehaviorNode node) { if (Top == null) { Top = node; } else { Top.AddBefore(node); Top = node; } }