-
Notifications
You must be signed in to change notification settings - Fork 0
/
UtageUguiSoundRoomItem.cs
58 lines (50 loc) · 1.54 KB
/
UtageUguiSoundRoomItem.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
56
57
using System;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
using Utage;
[AddComponentMenu("Utage/TemplateUI/SoundRoomItem")]
public class UtageUguiSoundRoomItem : MonoBehaviour
{
private AdvSoundSettingData data;
public Text title;
public void Init(AdvSoundSettingData data, Action<UtageUguiSoundRoomItem> ButtonClickedEvent, int index)
{
<Init>c__AnonStorey0 storey = new <Init>c__AnonStorey0 {
ButtonClickedEvent = ButtonClickedEvent,
$this = this
};
this.data = data;
this.title.set_text(data.Title);
base.GetComponent<Button>().get_onClick().AddListener(new UnityAction(storey, (IntPtr) this.<>m__0));
this.Stop();
}
public void Play()
{
base.get_transform().Find("play").get_gameObject().SetActive(false);
base.get_transform().Find("playing").get_gameObject().SetActive(true);
}
public void Stop()
{
base.get_transform().Find("play").get_gameObject().SetActive(true);
base.get_transform().Find("playing").get_gameObject().SetActive(false);
}
public AdvSoundSettingData Data
{
get
{
return this.data;
}
}
[CompilerGenerated]
private sealed class <Init>c__AnonStorey0
{
internal UtageUguiSoundRoomItem $this;
internal Action<UtageUguiSoundRoomItem> ButtonClickedEvent;
internal void <>m__0()
{
this.ButtonClickedEvent(this.$this);
}
}
}