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

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

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

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

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