Beispiel #1
0
 public PlaneEntity(Game game, Camera camera) : base(game)
 {
     PO               = new PositionedObject(game);
     TheCamera        = camera;
     PlaneBasicEffect = new BasicEffect(game.GraphicsDevice);
     game.Components.Add(this);
 }
Beispiel #2
0
 public PlaneEntity(Game game, Camera camera, Texture2D texture, Vector3 position) : base(game)
 {
     PO               = new PositionedObject(game);
     TheCamera        = camera;
     PlaneBasicEffect = new BasicEffect(game.GraphicsDevice);
     Create(texture);
     PO.Position = position;
     game.Components.Add(this);
 }