From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- Client/Assembly-CSharp/RefuelMinigame.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Client/Assembly-CSharp/RefuelMinigame.cs (limited to 'Client/Assembly-CSharp/RefuelMinigame.cs') 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(); + } +} -- cgit v1.1-26-g67d0