public void UpdateForce(ContainerApp container, ControllerScreen controller) { _targetAvailable = container.SpinsAvailable; _targetTotal = container.SpinsTotal; StartAnimationProcess(controller); }
private void StartAnimationProcess(ControllerScreen controller) { // stub _current = _target; controller.TextCoins.text = $"{_current}"; }
public void UpdateForce(ContainerApp container, ControllerScreen controller) { _targetPeriod = container.RestorePeriod; _targetSpins = container.SpinsToRestore; StartAnimationProcess(controller); }
private void StartAnimationProcess(ControllerScreen controller) { // stub _currentPeriod = _targetPeriod; _currentSpins = _targetSpins; controller.TextSpinRestore.text = $"{_currentSpins} spins in: {_currentPeriod:hh\\:mm\\:ss}"; }
public void Update(ContainerApp container, ControllerScreen controller) { _target = container.Coins; if (_target == _current) { return; } StartAnimationProcess(controller); }
public void UpdateForce(ContainerApp container, ControllerScreen controller) { var screen = _context.Resolve <ControllerScreen>(); var data = _context.Resolve <ContainerApp>(); for (var index = 0; index < Extensions.BARRELS_I; index++) { _context.Resolve <IServicePhysics>().StateResetIdle(data.PhysicsState[index]); ResetSprites(screen.ControllerBarrel[index].SlotControllers, data.PhysicsState[index]); } }
public void Update(ContainerApp container, ControllerScreen controller) { _targetPeriod = container.RestorePeriod; _targetSpins = container.SpinsToRestore; if (_currentSpins == _targetSpins && _currentPeriod == _targetPeriod) { return; } StartAnimationProcess(controller); }
private void StartAnimationProcess(ControllerScreen controller) { // stub _currentAvailable = _targetAvailable; _currentTotal = _targetTotal; controller.TextSpinCount.text = $"{_currentAvailable} / {_currentTotal}"; unchecked { controller.ProgressSpin.fillAmount = (float)_currentAvailable / _currentTotal; } }
public void Update(ContainerApp container, ControllerScreen controller) { _targetAvailable = container.SpinsAvailable; _targetTotal = container.SpinsTotal; if (_currentAvailable == _targetAvailable && _targetTotal == _currentTotal) { return; } StartAnimationProcess(controller); }
public void UpdateForce(ContainerApp container, ControllerScreen controller) { _target = container.Coins; StartAnimationProcess(controller); }
public void Update(ContainerApp container, ControllerScreen controller) { UpdateInternal(); }