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