public override void On() { if (Enabled) { return; } base.On(); _flashlightModel.SetActiveFlashlight(Enabled); }
public void Start() { Weapons = new List <WeaponModel>(Main.Instance.Player.GetComponentsInChildren <WeaponModel>()); foreach (var weapon in Weapons) { weapon.IsVisible = false; } FlashlightModel = Object.FindObjectOfType <FlashlightModel>(); FlashlightModel.SetActiveFlashlight(false); }