public void CreatePhysics() { var w = new World(); var obj = new BattleEnemy(); obj.CreatePhysics(w); Assert.AreEqual(1, w.BodyList.Count); }
public void DestroyPhysics(int count) { var w = new World(); for (var i = 0; i < count; i++) { var obj = new BattleEnemy(); obj.CreatePhysics(w); PhysicsBodyRemover.Add(obj.Body, obj.Fixtures); } w.StepWithDelete(0.1f, 1, 1); Assert.AreEqual(0, w.BodyList.Count); }