Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIAnimeGroup Class Reference
Inheritance diagram for UIAnimeGroup:
UIAnime

Public Member Functions

override void Play (AnimePhase phase, UnityAction onComplete=null)
 
UIAnimeGroup AddAnime (Transform target, Anime intro, Anime outro=null, Anime loop=null)
 
override bool Has (AnimePhase phase)
 
- Public Member Functions inherited from UIAnime
virtual void Play (AnimePhase phase, UnityAction onComplete=null)
 
virtual bool Has (AnimePhase phase)
 
void OnComplete (UnityAction onComplete)
 

Public Attributes

List< AnimeItemanimes = new List<AnimeItem>()
 
- Public Attributes inherited from UIAnime
bool isDisableInput = true
 

Detailed Description

Definition at line 5 of file UIAnimeGroup.cs.

Member Function Documentation

◆ AddAnime()

UIAnimeGroup UIAnimeGroup.AddAnime ( Transform  target,
Anime  intro,
Anime  outro = null,
Anime  loop = null 
)
inline

Definition at line 28 of file UIAnimeGroup.cs.

29 {
30 animes.Add(new AnimeItem
31 {
32 target = target,
33 intro = intro,
34 outro = outro,
35 loop = loop
36 });
37 return this;
38 }
List< AnimeItem > animes
Definition: UIAnimeGroup.cs:7

References animes.

◆ Has()

override bool UIAnimeGroup.Has ( AnimePhase  phase)
inlinevirtual

Reimplemented from UIAnime.

Definition at line 40 of file UIAnimeGroup.cs.

41 {
42 foreach (AnimeItem anime in animes)
43 {
44 if ((phase == AnimePhase.Intro && (bool)anime.intro) || (phase == AnimePhase.Outro && (bool)anime.outro))
45 {
46 return true;
47 }
48 }
49 return false;
50 }
AnimePhase
Definition: AnimePhase.cs:2
Anime outro
Definition: AnimeItem.cs:10
Anime intro
Definition: AnimeItem.cs:8

References animes, AnimeItem.intro, and AnimeItem.outro.

◆ Play()

override void UIAnimeGroup.Play ( AnimePhase  phase,
UnityAction  onComplete = null 
)
inlinevirtual

Reimplemented from UIAnime.

Definition at line 9 of file UIAnimeGroup.cs.

10 {
11 bool flag = false;
12 foreach (AnimeItem anime in animes)
13 {
14 if (flag)
15 {
16 anime.Play(phase);
17 continue;
18 }
19 anime.Play(phase, delegate
20 {
21 OnComplete(onComplete);
22 });
23 flag = true;
24 }
25 base.Play(phase, onComplete);
26 }
void Play(AnimePhase phase, UnityAction onComplete=null)
Definition: AnimeItem.cs:18
void OnComplete(UnityAction onComplete)
Definition: UIAnime.cs:17

References animes, UIAnime.OnComplete(), and AnimeItem.Play().

Member Data Documentation

◆ animes

List<AnimeItem> UIAnimeGroup.animes = new List<AnimeItem>()

Definition at line 7 of file UIAnimeGroup.cs.

Referenced by AddAnime(), Has(), and Play().


The documentation for this class was generated from the following file: