public virtual void Damaged(float damage, Vector3 p) { GameObject g = Instantiate(DamagedParticle, p, Quaternion.identity); Destroy(g, 3); DamagedAssets.Play(audioSource); }
// Use this for initialization void Start() { AudioSource audio = GetComponent <AudioSource>(); assets.Play(audio); }
//Solutions void PlayStep() { StepAssets.Play(audioSource); }
void PlayStep() { StepSound.Play(audioSource); }
void PlayDownAttackTwo() { AttackDownAttackTwoSound.Play(audioSource); }
void PlayDownAttackOne() { AttackDownAttackOneSound.Play(audioSource); }
void PlayJumpSlashTwo() { AttackJumpSlashTwoSound.Play(audioSource); }
void PlayJumpSlashOne() { AttackJumpSlashOneSound.Play(audioSource); }
void PlayJump() { JumpSound.Play(audioSource); }
void PlayAttackLowTwo() { AttackLowTwoSound.Play(audioSource); }
// Should be like animation curver void PlayAttackLow() { AttackLowSound.Play(audioSource); }