Example #1
0
 private void Awake()
 {
     _eatingModel         = FindObjectOfType <EatingModel>();
     _movingUpObjects     = FindObjectOfType <MovingUpObjects>();
     _inputController     = FindObjectOfType <InputController>();
     _staminaSlider       = FindObjectOfType <StaminaSlider>();
     _animatorsModel      = FindObjectOfType <AnimatorsModel>();
     _particlesController = FindObjectOfType <ParticlesController>();
     _bossModel           = FindObjectOfType <Boss>();
     _coins = FindObjectOfType <Coins>();
 }
Example #2
0
 private void Awake()
 {
     _staminaSlider  = FindObjectOfType <StaminaSlider>();
     _enemyEffects   = FindObjectOfType <EnemyEffects>();
     _uiController   = FindObjectOfType <UIController>();
     _winPanel       = FindObjectOfType <WinPanelModel>();
     _rotatingObject = FindObjectOfType <RotatingObject>();
     _coinsModel     = FindObjectOfType <Coins>();
     _eatingModel    = FindObjectOfType <EatingModel>();
     _bossModel      = FindObjectOfType <Boss>();
     _staminaSlider.BasicStaminaOffMultiplyer = _staminaSlider.StaminaOffMultiplyer;
 }
Example #3
0
 //Player Prefs : BossesBeaten - Побито боссов(для того что бы в начале по порядку боссов пустить)
 private void Awake()
 {
     _bossModel      = FindObjectOfType <Boss>();
     _staminaSlider  = FindObjectOfType <StaminaSlider>();
     _rotatingObject = FindObjectOfType <RotatingObject>();
 }
 void Start()
 {
     playparticles         = false;
     StaminaSliderInstance = this;
 }