C# port of Java Behaviour Trees