9 public override string id
18 public override void OnActivate()
24 this.prefab = Resources.Load<Shooter>(
"Basket");
26 Debug.Log(this.prefab);
27 this.go = UnityEngine.Object.Instantiate<GameObject>(this.prefab.gameObject);
29 this.game = this.go.GetComponentInChildren<Shooter>();
31 base.SetAudioMixer(this.go);
32 Shooter.game =
new Game_Basket
34 Deactivate =
new Action(base.Deactivate),
35 OnPlay =
new Func<int, bool>(base.OnPlay),
36 ModChangeCoin = delegate(
int a)
38 this.balance.changeCoin += a;
40 ModLastCoin = delegate(
int a)
42 this.balance.lastCoin += a;
44 LastCoin = (() => this.balance.lastCoin)
46 EClass.scene.audioListener.enabled =
false;
50 public override void OnDeactivate()
53 EClass.scene.audioListener.enabled =
true;
57 public Shooter prefab;