Exemplo n.º 1
0
 private void StopShootingSubscription()
 {
     EveryUpdate
     .Do(_ => _stopShootingTimer -= Time.deltaTime)
     .Where(_ => _stopShootingTimer < 0)
     .Subscribe(_ => _waterEmission.enabled = false)
     .AddTo(_disposables);
 }
Exemplo n.º 2
0
 protected override void Load()
 {
     EveryUpdate
     .Do(_ => _fireSpawnTimer -= Time.deltaTime)
     .Where(_ => _fireSpawnTimer < 0)
     .Select(_ => GeneratePosition())
     .Do(SpawnFire)
     .Subscribe()
     .AddTo(_disposables);
 }