Example #1
0
        public void AfterTest()
        {
            _movement = null;

            _stamina   = null;
            _rigidbody = null;
        }
Example #2
0
        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;
        }