public override void Exit() { _actorFactory.Dispose(); _coloredSolidShader.Dispose(); _texturedSolidShader.Dispose(); base.Exit(); }
public void OnDispose_DisablesBrain() { var actorController = new ActorFactory(_actorSettings, _actorStatuses, Vector2Int.zero).Controller; _board.Initialise(new List <IActor> { actorController }); actorController.Dispose(); Assert.That(!_actorBrain.Enabled); }