-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevelData.cs
More file actions
43 lines (38 loc) · 964 Bytes
/
LevelData.cs
File metadata and controls
43 lines (38 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using JetBrains.Annotations;
using UnityEngine;
[System.Serializable]
public class CricketLevelData
{
public int levelIndex;
public int stepsToWin;
public float time;
public float rewardAmount;
public CricketLevelData(int levelIndex, int stepsToWin, float time, float rewardAmount)
{
this.levelIndex = levelIndex;
this.stepsToWin = stepsToWin;
this.time = time;
this.rewardAmount = rewardAmount;
}
}
[System.Serializable]
public class BossLevelData
{
public int levelIndex;
public float rewardAmount;
public BossType bossType;
public BossLevelData(int levelIndex, float rewardAmount, BossType bossType)
{
this.levelIndex = levelIndex;
this.rewardAmount = rewardAmount;
this.bossType = bossType;
}
}
// Enum to identify boss types
public enum BossType
{
Bird,
Colorful,
CricketAztec,
Toxic,
}