예제 #1
0
        public override void Exit()
        {
            _actorFactory.Dispose();
            _coloredSolidShader.Dispose();
            _texturedSolidShader.Dispose();

            base.Exit();
        }
예제 #2
0
        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);
        }