Elin Modding Docs Doc
Loading...
Searching...
No Matches
MiniGame_Basket.cs
1using System;
2using UnityEngine;
3
4// Token: 0x020005A0 RID: 1440
5public class MiniGame_Basket : ModMinigame<Shooter>
6{
7 // Token: 0x17000BAE RID: 2990
8 // (get) Token: 0x06002781 RID: 10113 RVA: 0x000DFC07 File Offset: 0x000DDE07
9 public override string id
10 {
11 get
12 {
13 return "Basket";
14 }
15 }
16
17 // Token: 0x06002782 RID: 10114 RVA: 0x000DFC10 File Offset: 0x000DDE10
18 public override void OnActivate()
19 {
20 if (!this.game)
21 {
22 if (!this.prefab)
23 {
24 this.prefab = Resources.Load<Shooter>("Basket");
25 }
26 Debug.Log(this.prefab);
27 this.go = UnityEngine.Object.Instantiate<GameObject>(this.prefab.gameObject);
28 Debug.Log(this.go);
29 this.game = this.go.GetComponentInChildren<Shooter>();
30 }
31 base.SetAudioMixer(this.go);
32 Shooter.game = new Game_Basket
33 {
34 Deactivate = new Action(base.Deactivate),
35 OnPlay = new Func<int, bool>(base.OnPlay),
36 ModChangeCoin = delegate(int a)
37 {
38 this.balance.changeCoin += a;
39 },
40 ModLastCoin = delegate(int a)
41 {
42 this.balance.lastCoin += a;
43 },
44 LastCoin = (() => this.balance.lastCoin)
45 };
46 EClass.scene.audioListener.enabled = false;
47 }
48
49 // Token: 0x06002783 RID: 10115 RVA: 0x000DFD04 File Offset: 0x000DDF04
50 public override void OnDeactivate()
51 {
52 base.Kill();
53 EClass.scene.audioListener.enabled = true;
54 }
55
56 // Token: 0x040015ED RID: 5613
57 public Shooter prefab;
58}