Beispiel #1
0
        public void OnReset_ReturnsToOriginalState()
        {
            var actorController = new ActorFactory(_actorSettings, _actorStatuses, Vector2Int.zero).Controller;

            _board.Initialise(new List <IActor> {
                actorController
            });

            _actorBrain.Callback.Invoke(Vector2Int.down);
            Assert.That(actorController.Position == Vector2Int.down);

            actorController.Reset();
            Assert.That(actorController.Position == Vector2Int.zero);
        }