Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
LayerCover.cs
Go to the documentation of this file.
1
using
System;
2
3
public
class
LayerCover
:
ELayer
4
{
5
public
Func<float, bool>
funcEnd
;
6
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
public
void
SetCondition
(Func<float, bool> func)
17
{
18
funcEnd
= func;
19
}
20
21
public
override
void
OnUpdateInput
()
22
{
23
base.OnUpdateInput();
24
if
(
funcEnd
!=
null
&&
funcEnd
(
Core
.
delta
))
25
{
26
ELayer
.
ui
.RemoveLayer(
this
);
27
}
28
}
29
}
Core
Definition:
Core.cs:14
Core.delta
static float delta
Definition:
Core.cs:17
ELayer
Definition:
ELayer.cs:4
ELayer.ui
static UI ui
Definition:
ELayer.cs:21
LayerCover
Definition:
LayerCover.cs:4
LayerCover.SetCondition
void SetCondition(Func< float, bool > func)
Definition:
LayerCover.cs:16
LayerCover.OnUpdateInput
override void OnUpdateInput()
Definition:
LayerCover.cs:21
LayerCover.SetDuration
void SetDuration(float duration, Action onKill)
Definition:
LayerCover.cs:7
LayerCover.funcEnd
Func< float, bool > funcEnd
Definition:
LayerCover.cs:5
Layer.onKill
UnityEvent onKill
Definition:
Layer.cs:86
Elin
LayerCover.cs
Generated by
1.9.6