예제 #1
0
 public override void On()
 {
     if (Enabled)
     {
         return;
     }
     base.On();
     _flashlightModel.SetActiveFlashlight(Enabled);
 }
예제 #2
0
        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);
        }