Esempio n. 1
0
        protected override void OnDestroy()
        {
            ScoreController.multiplierDidChangeEvent -= HandleMultiplierDidChange;

            MultiplierController = null !;
            Config          = null !;
            ScoreController = null !;
        }
Esempio n. 2
0
        [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();
        }