public void Construct(DiContainer container, NuisanceManager nuisanceManager)
        {
            _container       = container;
            _nuisanceManager = nuisanceManager;

            _attachedNuisanceList = new List <Nuisance>();
            _nuisanceManager.AddCameraNuisanceController(this);
        }
예제 #2
0
        public void Init(NuisanceManager nuisanceManager)
        {
            _nuisanceManager    = nuisanceManager;
            _gameNoteController = GetComponent <GameNoteController>();

            _gameNoteController.didInitEvent.Add(this);
            _gameNoteController.noteWasCutEvent.Add(this);
            _gameNoteController.noteWasMissedEvent.Add(this);
        }
예제 #3
0
        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();
        }
예제 #4
0
 public NuisanceGameController(NuisanceManager nuisanceManager, [InjectOptional] IGamePause gamePause)
 {
     _nuisanceManager = nuisanceManager;
     _gamePause       = gamePause;
 }