-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyAudioClip.cs
More file actions
35 lines (29 loc) · 772 Bytes
/
Copy pathMyAudioClip.cs
File metadata and controls
35 lines (29 loc) · 772 Bytes
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
using System;
using UnityEngine;
// Token: 0x0200000B RID: 11
public class MyAudioClip
{
// Token: 0x06000056 RID: 86 RVA: 0x00003826 File Offset: 0x00001A26
public MyAudioClip(string filename)
{
this.clip = (AudioClip)Resources.Load(filename);
this.name = filename;
}
// Token: 0x06000057 RID: 87 RVA: 0x00003846 File Offset: 0x00001A46
public void Play()
{
Main.main.GetComponent<AudioSource>().PlayOneShot(this.clip);
this.timeStart = mSystem.currentTimeMillis();
}
// Token: 0x06000058 RID: 88 RVA: 0x00003868 File Offset: 0x00001A68
public bool isPlaying()
{
return false;
}
// Token: 0x0400001A RID: 26
public string name;
// Token: 0x0400001B RID: 27
public AudioClip clip;
// Token: 0x0400001C RID: 28
public long timeStart;
}