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; } }
public Inventory() { FlashLight = Object.FindObjectOfType <FlashLightModel>(); }
public FlashLightController() { _flashLight = Inventory.FlashLight; _batteryUI = UIInterface.BatteryCharge; _timer = new Timer(); }