Example #1
0
    public virtual void Damaged(float damage, Vector3 p)
    {
        GameObject g = Instantiate(DamagedParticle, p, Quaternion.identity);

        Destroy(g, 3);
        DamagedAssets.Play(audioSource);
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        AudioSource audio = GetComponent <AudioSource>();

        assets.Play(audio);
    }
Example #3
0
    //Solutions

    void PlayStep()
    {
        StepAssets.Play(audioSource);
    }
Example #4
0
 void PlayStep()
 {
     StepSound.Play(audioSource);
 }
Example #5
0
 void PlayDownAttackTwo()
 {
     AttackDownAttackTwoSound.Play(audioSource);
 }
Example #6
0
 void PlayDownAttackOne()
 {
     AttackDownAttackOneSound.Play(audioSource);
 }
Example #7
0
 void PlayJumpSlashTwo()
 {
     AttackJumpSlashTwoSound.Play(audioSource);
 }
Example #8
0
 void PlayJumpSlashOne()
 {
     AttackJumpSlashOneSound.Play(audioSource);
 }
Example #9
0
 void PlayJump()
 {
     JumpSound.Play(audioSource);
 }
Example #10
0
 void PlayAttackLowTwo()
 {
     AttackLowTwoSound.Play(audioSource);
 }
Example #11
0
    // Should be like animation curver

    void PlayAttackLow()
    {
        AttackLowSound.Play(audioSource);
    }