public override void load(AxiosGameScreen gameScreen, ref Dictionary<string, Texture2D> cache)␍␊ |
{␍␊ |
base.load(gameScreen, ref cache);␍␊ |
␍␊ |
_body = BodyFactory.CreateRectangle(gameScreen.World, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f);␍␊ |
_body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width)/2, ConvertUnits.ToSimUnits(Height)/2);␍␊ |
_body.UserData = this;␍␊ |
if (gameScreen.LoadRectangleItem(this))␍␊ |
{␍␊ |
_body = BodyFactory.CreateRectangle(gameScreen.World, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f);␍␊ |
_body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width) / 2, ConvertUnits.ToSimUnits(Height) / 2);␍␊ |
_body.UserData = this;␍␊ |
}␍␊ |
}␍␊ |
}␍␊ |
}␍␊ |