Пример #1
0
 public void OnBoost(AcceleratorController accelerator)
 {
     EndDashCooldown();
     StartCombatCooldown();
     EndShortHopWindow();
     transform.position = accelerator.transform.position;
     rb2d.velocity      = accelerator.GetBoostVector();
 }
Пример #2
0
	public void OnBoost(AcceleratorController accelerator) {
		if (playerGrabber != null) playerGrabber.ReleasePlayer();
		RefreshAirMovement();
		InterruptMeteor();
		StartCombatCooldown(); 
		EndShortHopWindow();
		anim.SetTrigger(Buttons.JUMP);
		rb2d.MovePosition((Vector2) accelerator.transform.position + (Vector2.up * 0.32f).Rotate(accelerator.transform.rotation.eulerAngles.z));
		Vector2 v  = accelerator.GetBoostVector();
		rb2d.velocity = new Vector2(
			v.x == 0 ? rb2d.velocity.x : v.x,
			v.y
		);
	}
Пример #3
0
        public void Can_Get_TaxType_By_CodeName_And_Calculate_Tax()
        {
            A.CallTo(() => _postalCodeQueryProvider.Query).WithAnyArguments().Returns(AcceleratorTestData.PostalCodes);
            A.CallTo(() => _taxCalculationTypesQueryProvider.Query).WithAnyArguments().Returns(AcceleratorTestData.TaxTypes);

            var calculation = new TaxCalculation();

            calculation.Id            = 1;
            calculation.FullName      = "Joe Soup";
            calculation.Income        = 784684;
            calculation.CreatedDate   = System.DateTime.UtcNow;
            calculation.CalculatedTax = 0;
            calculation.PostalCode    = "Area0007";

            _acceleratorController = new AcceleratorController(_taxCalculationQueryProvider, _postalCodeQueryProvider, _taxCalculationTypesQueryProvider
                                                               , _progressiveRatesQueryProvider, _inspector, _progressiveTaxCalculator, _flatRateTaxCalculator, _flatValueTaxCalculator);

            var results = _acceleratorController.Get(calculation);

            Assert.IsNotNull(results.Value);
        }
Пример #4
0
 void Start()
 {
     acceleratorController = this.GetComponent<AcceleratorController>();
     coffinAnimator = coffin.GetComponent<Animator>();
     boardsAnimator = boards.GetComponent<Animator>();
 }