public void OnGameStart() { _spawnTween = LeanTween.delayedCall(_releasePowerupInSeconds, () => _cacheController.SpawnNext(_loopInSeconds)).setRepeat(-1).setDelay(_delayTime - _releasePowerupInSeconds + _releasePowerupInSeconds * GameConstants.Animation.Powerup.SpawnTimeOffset); }
public void OnGameStart() { _spawnTween = LeanTween.delayedCall(_releaseObstacleInSeconds, () => _cacheController.SpawnNext(_loopInSeconds)).setRepeat(-1).setDelay(_delayTime - _releaseObstacleInSeconds); }