-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAudioSegment.cs
55 lines (45 loc) · 1.42 KB
/
AudioSegment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Decompiled with JetBrains decompiler
// Type: AudioSegment
// Assembly: ProEra.Game, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A251AB60-A6EC-4F45-B61A-221E02FF094C
// Assembly location: C:\Users\nicke\Desktop\Folders\pro era modding again lol\pcversion\NFL Pro Era\NFL PRO ERA_Data\Managed\ProEra.Game.dll
using UnityEngine;
public class AudioSegment
{
private AudioClip audioClip;
private float delayAfter;
private bool clearQueueAfterPlay;
public AudioSegment(AudioClip ac, float delay)
{
this.audioClip = ac;
this.delayAfter = delay;
this.clearQueueAfterPlay = false;
}
public AudioSegment(float delay)
{
this.audioClip = (AudioClip) null;
this.delayAfter = delay;
this.clearQueueAfterPlay = false;
}
public AudioSegment(AudioClip ac)
{
this.audioClip = ac;
this.delayAfter = 0.0f;
this.clearQueueAfterPlay = false;
}
public AudioSegment(float delay, bool clearQueueAfter)
{
this.audioClip = (AudioClip) null;
this.delayAfter = delay;
this.clearQueueAfterPlay = clearQueueAfter;
}
public AudioSegment(AudioClip ac, float delay, bool clearQueueAfter)
{
this.audioClip = ac;
this.delayAfter = delay;
this.clearQueueAfterPlay = clearQueueAfter;
}
public AudioClip GetAudioClip() => this.audioClip;
public float GetDelayAfter() => this.delayAfter;
public bool ClearQueueAfterPlay() => this.clearQueueAfterPlay;
}