private void Start() { CharacterShooter shooter = this.character.GetComponent <CharacterShooter>(gameObject); if (shooter == null) { return; } shooter.AddListenerClipChange(this.OnChangeInClip); shooter.AddListenerStorageChange(this.OnChangeInStorage); shooter.eventChangeAmmo.AddListener(this.OnChangeAmmo); if (shooter.currentAmmo != null) { this.currentAmmoID = shooter.currentAmmo.ammoID; this.OnChangeAmmo(shooter.currentAmmo); } }