void Awake() { particleSystem = GetComponentInChildren <ParticleSystem>(); audioSource = GetComponent <AudioSource>(); weaponFx = GetComponent <WeaponFx>(); weaponFx.SetVisualsTo(weapon); }
public void SetWeaponTo(WeaponsUnlocks.Weapon weapon) { this.weapon = weapon; weaponFx.SetVisualsTo(weapon); }