Exemple #1
0
        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);
        }
Exemple #2
0
 public void Initialization()
 {
     _flashLightModel = Object.FindObjectOfType <FlashLightModel>();
     _flashLightUi    = Object.FindObjectOfType <FlashLightUi>();
 }