summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/RefuelMinigame.cs
blob: c54401fd2cbd57d55096713efac08ae7f287e54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();
	}
}