Base Entity keeps track of core

This commit is contained in:
Simon Holmberg
2012-09-27 19:31:34 +02:00
parent 39eaa15b50
commit 533c4b9712
+3 -3
View File
@@ -17,7 +17,7 @@ namespace DepthsBelow
public Soldier(Core core) : base(core) public Soldier(Core core) : base(core)
{ {
if (Texture == null) if (Texture == null)
LoadContent(game); LoadContent(core);
pixelTransform.Origin = new Vector2(16, 16); pixelTransform.Origin = new Vector2(16, 16);
@@ -38,9 +38,9 @@ namespace DepthsBelow
} }
} }
public static void LoadContent(Core game) public static void LoadContent(Core core)
{ {
Texture = game.Content.Load<Texture2D>("images/soldier2"); Texture = core.Content.Load<Texture2D>("images/soldier2");
} }
public override void Update(GameTime gameTime) public override void Update(GameTime gameTime)