Пример #1
0
 public Inventory()
 {
     FlashLight = Object.FindObjectOfType <FlashLightModel>();
     Player     = GameObject.FindGameObjectWithTag(TagManager.PLAYER);
     Weapons    = Player.GetComponentsInChildren <WeaponBase>();
     foreach (WeaponBase weapon in Weapons)
     {
         weapon.ClipsCount   = weapon.ClipsMaxCount;
         weapon.BulletsCount = weapon.BulletsInClip;
     }
 }
Пример #2
0
 public Inventory()
 {
     FlashLight = Object.FindObjectOfType <FlashLightModel>();
 }
Пример #3
0
 public FlashLightController()
 {
     _flashLight = Inventory.FlashLight;
     _batteryUI  = UIInterface.BatteryCharge;
     _timer      = new Timer();
 }