Elin Modding Docs Doc
Loading...
Searching...
No Matches
LayerCover.cs
1using System;
2
3// Token: 0x02000532 RID: 1330
4public class LayerCover : ELayer
5{
6 // Token: 0x060023F8 RID: 9208 RVA: 0x000CA670 File Offset: 0x000C8870
7 public void SetDuration(float duration, Action onKill)
8 {
9 TweenUtil.Tween(duration, null, delegate()
10 {
11 ELayer.ui.RemoveLayer(this);
12 onKill();
13 });
14 }
15
16 // Token: 0x060023F9 RID: 9209 RVA: 0x000CA6A5 File Offset: 0x000C88A5
17 public void SetCondition(Func<float, bool> func)
18 {
19 this.funcEnd = func;
20 }
21
22 // Token: 0x060023FA RID: 9210 RVA: 0x000CA6AE File Offset: 0x000C88AE
23 public override void OnUpdateInput()
24 {
25 base.OnUpdateInput();
26 if (this.funcEnd != null && this.funcEnd(Core.delta))
27 {
28 ELayer.ui.RemoveLayer(this);
29 }
30 }
31
32 // Token: 0x04001375 RID: 4981
33 public Func<float, bool> funcEnd;
34}