public void Initialization() { _weapons = ServiceLocatorMonoBehaviour.GetService <CharacterController>(). GetComponentsInChildren <BaseWeaponObject>(); foreach (var weapon in Weapons) { weapon.IsVisible = false; } FlashLight = Object.FindObjectOfType <FlashLightModel>(); FlashLight.Switch(FlashLightActiveType.Off); }
public void Initialization() { _flashLightModel = Object.FindObjectOfType <FlashLightModel>(); }