private void Start() { container = magazine.GetComponent <GunContainer>(); container.SetFillPercentage(0); timeSinceLastEmpty = _emptyingTimeout; audioSource = GetComponent <AudioSource>(); }
private void UpdateContainer() { container = magazine.GetComponent <GunContainer>(); container.SetFillPercentage(containerFill); if (colorInContainer != null) { container.SetColor(colorInContainer.Value); } }