public void AfterTest() { _movement = null; _stamina = null; _rigidbody = null; }
public void AfterTest() { _deadActionState = null; _heldItem = null; _stamina = null; _playerBinder = null; GameModeComponent.RegisteredGameMode = null; }
public void BeforeTest() { _rigidbody = new GameObject().AddComponent <Rigidbody2D>(); _stamina = _rigidbody.gameObject.AddComponent <MockStaminaComponent>(); _movement = _rigidbody.gameObject.AddComponent <TestMovementComponent>(); _movement.TestAwake(); _movement.Velocity = 5.0f; _stamina.CanExpendStaminaResult = true; _stamina.IsStaminaDepletedResult = false; }
public void BeforeTest() { var gameMode = new GameObject(); gameMode.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake(); GameModeComponent.RegisteredGameMode = gameMode.AddComponent <TestGameModeComponent>(); var player = new GameObject(); player.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake(); _playerBinder = player.AddComponent <MockInputBinderComponent>(); _stamina = player.AddComponent <MockStaminaComponent>(); _heldItem = player.AddComponent <MockHeldItemComponent>(); _params = new DeadActionStateParams { CanRespawn = true }; }