public void Construct(DiContainer container, NuisanceManager nuisanceManager) { _container = container; _nuisanceManager = nuisanceManager; _attachedNuisanceList = new List <Nuisance>(); _nuisanceManager.AddCameraNuisanceController(this); }
public void Init(NuisanceManager nuisanceManager) { _nuisanceManager = nuisanceManager; _gameNoteController = GetComponent <GameNoteController>(); _gameNoteController.didInitEvent.Add(this); _gameNoteController.noteWasCutEvent.Add(this); _gameNoteController.noteWasMissedEvent.Add(this); }
private IEnumerator IntensityLerp(NuisanceManager nuisanceManager, float lerpDuration = 0.3f, Action onDone = null) { float timeElapsed = 0f; float startValue = nuisanceManager.Intensity; float endValue = nuisanceManager.TargetIntensity; while (timeElapsed < lerpDuration) { nuisanceManager.Intensity = Mathf.Lerp(startValue, endValue, timeElapsed / lerpDuration); timeElapsed += Time.deltaTime; yield return(null); } nuisanceManager.Intensity = endValue; onDone?.Invoke(); }
public NuisanceGameController(NuisanceManager nuisanceManager, [InjectOptional] IGamePause gamePause) { _nuisanceManager = nuisanceManager; _gamePause = gamePause; }