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