Exemplo n.º 1
0
    public virtual void _WeaponOff()
    {
        FrontBlade.active = false;
        BackBlade.active  = false;
        frontTrail.ClearTrail();
        backTrail.ClearTrail();

        GlobalAudioSystem.PlayAudioData(unit.AudioDataDict[WeaponOffSoundEffectName]);
    }
Exemplo n.º 2
0
 public void _PlayAudio(string AudioDataName)
 {
     try{
         GlobalAudioSystem.PlayAudioData(unit.AudioDataDict [AudioDataName]);
     }
     catch (System.Collections.Generic.KeyNotFoundException keyNotFoundExc)
     {
         Debug.LogError("Key not found exception for Audio data name:" + AudioDataName + " \nstackTrace:" + keyNotFoundExc.StackTrace);
     }
 }
Exemplo n.º 3
0
    public virtual IEnumerator _WeaponOn(float delay)
    {
        if (delay > 0)
        {
            yield return(new WaitForSeconds(delay));
        }
        FrontBlade.active = true;
        BackBlade.active  = true;
        frontTrail.StartTrail(0.5f, 0.4f);
        backTrail.StartTrail(0.5f, 0.4f);

        GlobalAudioSystem.PlayAudioData(unit.AudioDataDict[WeaponOnSoundEffectName]);
    }
Exemplo n.º 4
0
 void Awake()
 {
     Instance = this;
 }
Exemplo n.º 5
0
    public void PlaySound(string name)
    {
        AudioData audioData = predatorUnit.AudioDataDict[name];

        GlobalAudioSystem.PlayAudioData(audioData);
    }