protected override void OnDestroy() { ScoreController.multiplierDidChangeEvent -= HandleMultiplierDidChange; MultiplierController = null !; Config = null !; ScoreController = null !; }
[Inject] internal void ModifierInit(ScoreMultiplierUIController smuic, Config.Multiplier config, IScoreController scoreController) { Logger.Logger.Debug("ScoreMultiplierPanelModifier:ModifierInit()"); MultiplierController = smuic; Config = config; ScoreController = scoreController; scoreController.multiplierDidChangeEvent += HandleMultiplierDidChange; transform.SetParent(smuic.transform); ModPanel(); }