Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
MiniGame_Basket Class Reference
Inheritance diagram for MiniGame_Basket:
ModMinigame< Shooter >

Public Member Functions

override void OnActivate ()
 
override void SlidePosition (float w)
 
override void OnDeactivate ()
 
- Public Member Functions inherited from ModMinigame< Shooter >
void Load ()
 
void Kill ()
 

Public Attributes

Shooter prefab
 
- Public Attributes inherited from ModMinigame< Shooter >
game
 

Properties

override string id [get]
 

Detailed Description

Definition at line 3 of file MiniGame_Basket.cs.

Member Function Documentation

◆ OnActivate()

override void MiniGame_Basket.OnActivate ( )
inline

Definition at line 9 of file MiniGame_Basket.cs.

10 {
11 if (!game)
12 {
13 if (!prefab)
14 {
15 prefab = Resources.Load<Shooter>("Basket");
16 }
17 Debug.Log(prefab);
18 go = Object.Instantiate(prefab.gameObject);
19 Debug.Log(go);
20 game = go.GetComponentInChildren<Shooter>();
21 }
22 SetAudioMixer(go);
23 Shooter.game = new Game_Basket
24 {
25 Deactivate = base.Deactivate,
26 OnPlay = base.OnPlay,
27 ModChangeCoin = delegate(int a)
28 {
29 balance.changeCoin += a;
30 },
31 ModLastCoin = delegate(int a)
32 {
33 balance.lastCoin += a;
34 },
35 LastCoin = () => balance.lastCoin
36 };
37 EClass.scene.audioListener.enabled = false;
38 }

References Debug, ModMinigame< Shooter >.game, and prefab.

◆ OnDeactivate()

override void MiniGame_Basket.OnDeactivate ( )
inline

Definition at line 45 of file MiniGame_Basket.cs.

46 {
47 Kill();
48 EClass.scene.audioListener.enabled = true;
49 }

References ModMinigame< Shooter >.Kill().

◆ SlidePosition()

override void MiniGame_Basket.SlidePosition ( float  w)
inline

Definition at line 40 of file MiniGame_Basket.cs.

41 {
42 game.transCanvas.Rect().anchoredPosition = new Vector2(w / 2f, 0f);
43 }

References ModMinigame< Shooter >.game.

Member Data Documentation

◆ prefab

Shooter MiniGame_Basket.prefab

Definition at line 5 of file MiniGame_Basket.cs.

Referenced by OnActivate().

Property Documentation

◆ id

override string MiniGame_Basket.id
get

Definition at line 7 of file MiniGame_Basket.cs.


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