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

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

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

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

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