public void Initialization() { _weapons = ServiceLocatorMonoBehaviour.GetService <CharacterController>() .GetComponentsInChildren <Weapon>().ToList(); foreach (Weapon weapon in _weapons) { weapon.IsVisible = false; } _currentActiveWeapon = -1; FlashLight = Object.FindObjectOfType <FlashLightModel>(); FlashLight.Switch(FlashLightActiveType.Off); }
public void Initialization() { _flashLightModel = Object.FindObjectOfType <FlashLightModel>(); _flashLightUi = Object.FindObjectOfType <FlashLightUi>(); }