summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/RefuelMinigame.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/RefuelMinigame.cs')
-rw-r--r--Client/Assembly-CSharp/RefuelMinigame.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/RefuelMinigame.cs b/Client/Assembly-CSharp/RefuelMinigame.cs
new file mode 100644
index 0000000..c54401f
--- /dev/null
+++ b/Client/Assembly-CSharp/RefuelMinigame.cs
@@ -0,0 +1,23 @@
+using System;
+
+public class RefuelMinigame : Minigame
+{
+ public RefuelStage[] Stages;
+
+ private RefuelStage stage;
+
+ public override void Begin(PlayerTask task)
+ {
+ base.Begin(task);
+ this.stage = this.Stages[(int)this.MyNormTask.Data[1]];
+ this.stage.MyNormTask = this.MyNormTask;
+ this.stage.gameObject.SetActive(true);
+ this.stage.Begin();
+ }
+
+ public override void Close()
+ {
+ SoundManager.Instance.StopSound(this.stage.RefuelSound);
+ base.Close();
+ }
+}