public override void On(params BaseObjectScene[] flashLight)
        {
            if (IsActive)
            {
                return;
            }

            if (flashLight.Length > 0)
            {
                _flashLightModel = flashLight[0] as FlashLightModel;    //todo Нужно пояснение к этой строке...
            }

            if (_flashLightModel == null)
            {
                return;
            }

            if (_flashLightModel.BatteryChargeCurrent <= 0)
            {
                return;
            }

            base.On(_flashLightModel);

            _flashLightModel.Switch(FlashLightActiveType.On);

            UiInterface.FlashLightUiText.SetActive(true);
            UiInterface.FlashLightUiBar.SetActive(true);
            UiInterface.FlashLightUiBar.SetColor(Color.green);
        }
        public void Initialization()
        {
            _weapons = ServiceLocatorMonoBehaviour.GetService <CharacterController>().
                       GetComponentsInChildren <Weapon>().ToList();

            foreach (var weapon in Weapons)
            {
                weapon.IsVisible = false;
            }

            FlashLightModel = Object.FindObjectOfType <FlashLightModel>();
            FlashLightModel.Switch(FlashLightActiveType.Off);
        }
 public void Initialization()
 {
     _flashLightModel = Object.FindObjectOfType <FlashLightModel>();
     _flashLightUi    = Object.FindObjectOfType <FlashLightUi>();
 }