public static Hierarchy create(Hierarchy.Walls wall, Azul.Color color) { Hierarchy node = new WallNode(color, GameObject.Name.Wall); GameObjectManager.addRoot(node); SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions); return node; }
public override void visitWallNode(WallNode wn, CollisionPair p) { p.collision((GameObject)wn.Child, this); }
public virtual void visitWallNode(WallNode wn, CollisionPair p) { Debug.Assert(false, "Shouldn't have been called"); }