Definition at line 4 of file MiniGame_Blackjack.cs.
◆ CanExit()
override bool MiniGame_Blackjack.CanExit |
( |
| ) |
|
|
inline |
◆ OnActivate()
override void MiniGame_Blackjack.OnActivate |
( |
| ) |
|
|
inline |
Definition at line 19 of file MiniGame_Blackjack.cs.
20 {
22 {
24 {
25 prefab = Resources.Load<Blackjack>(
"BlackJack");
26 }
28 go = Object.Instantiate(
prefab.gameObject);
30 game = go.GetComponentInChildren<Blackjack>();
31 }
32 SetAudioMixer(go);
33 Blackjack.game = new Game_Blackjack
34 {
35 Deactivate = base.Deactivate,
36 OnPlay = base.OnPlay,
37 ModChangeCoin = delegate(int a)
38 {
39 balance.changeCoin += a;
40 },
41 ModLastCoin = delegate(int a)
42 {
43 balance.lastCoin += a;
44 },
45 LastCoin = () => balance.lastCoin
46 };
47 game.btnExit.SetOnClick(base.Exit);
48 game.Money = balance.lastCoin;
49 }
References Debug, ModMinigame< Blackjack >.game, and prefab.
◆ OnDeactivate()
override void MiniGame_Blackjack.OnDeactivate |
( |
| ) |
|
|
inline |
◆ SlidePosition()
override void MiniGame_Blackjack.SlidePosition |
( |
float |
w | ) |
|
|
inline |
Definition at line 51 of file MiniGame_Blackjack.cs.
52 {
53 game.transCanvas.anchoredPosition = new Vector2(w / 2f, 75f);
54 }
◆ prefab
Blackjack MiniGame_Blackjack.prefab |
◆ id
override string MiniGame_Blackjack.id |
|
get |
The documentation for this class was generated from the following file: