예제 #1
0
        public override Node2D GenerateOn(CanvasItem node)
        {
            node.QueueFreeChildren();
            ObstacleAppearance appearance = ObstacleAppearance.New();

            node.AddChild(appearance);
            appearance.SetAppearance(id);
            appearance.Position = OFFSET;
            return(appearance);
        }
예제 #2
0
        public override Node2D GenerateOn(CanvasItem node)
        {
            node.QueueFreeChildren();
            CharacterAppearance appearance = CharacterAppearance.New();

            node.AddChild(appearance);
            appearance.data     = this;
            appearance.Position = OFFSET;
            return(appearance);
        }