Beispiel #1
0
 public Target(Engine engine)
 {
     this.Engine = engine;
 }
Beispiel #2
0
        public virtual void Initialize(World world)
        {
            this.Engine = world.Engine;
            world.Entities.Add(this);

            Entity ent = Engine.World.FindEntitiy(Parent);
            if (ent == null)
            {
                Parent = "";
                ParentOffset = new Vector2(0);
            }
            else
                ParentOffset = ent.Position - Position;
        }