More balancing towards infinity runner
This commit is contained in:
@@ -2857,9 +2857,8 @@ MonoBehaviour:
|
||||
- {fileID: 3425233021637308467, guid: 9cfafec4161cf3c4f86a3824513846ac, type: 3}
|
||||
- {fileID: 2113769983520899469, guid: 9eafff82623c2f7468270f2c9e3d677a, type: 3}
|
||||
- {fileID: 2988591104085892534, guid: 03140737509422d4d8bb02e8666c8d00, type: 3}
|
||||
- {fileID: 4589213692722742485, guid: f2127aac0c5addb4ab388991a33e8299, type: 3}
|
||||
- {fileID: 2905477253455755942, guid: cc2991a7dd7e57d4b89e9b7cc0d29440, type: 3}
|
||||
- {fileID: 2709827901078906258, guid: ff7c3b7d52b8de54e9917c40c82aecc4, type: 3}
|
||||
- {fileID: 2905477253455755942, guid: cc2991a7dd7e57d4b89e9b7cc0d29440, type: 3}
|
||||
medObstaclelIst:
|
||||
- {fileID: 3821658720673687754, guid: d0164d7ee6ae94349b5fb425366d9805, type: 3}
|
||||
- {fileID: 5412598120349462372, guid: a7a9bd40273944b4694f6dfb9f5a76fd, type: 3}
|
||||
|
||||
@@ -68,15 +68,15 @@ public class InfinityRunner : MonoBehaviour
|
||||
{
|
||||
|
||||
level++;
|
||||
if(level > 3)
|
||||
if(level > 5)
|
||||
{
|
||||
escalation++;
|
||||
level = 1;
|
||||
|
||||
if(escalation > 5 && countdownTime > 5.0f)
|
||||
/*if(escalation > 5 && countdownTime > 4.0f)
|
||||
{
|
||||
countdownTime -= 0.5f;
|
||||
}
|
||||
countdownTime -= 1f;
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
@@ -98,13 +98,15 @@ public class InfinityRunner : MonoBehaviour
|
||||
{
|
||||
selection = Random.Range(0, medObstaclelIst.Length);
|
||||
spawn = Instantiate(medObstaclelIst[selection], new Vector3(0, 0, lastSpawn.transform.position.z+(25*size)-12.5f), Quaternion.identity) as GameObject;
|
||||
countdownTime = 5.0f;
|
||||
} else if(escalation >= 6) {
|
||||
selection = Random.Range(0, obstacleList.Length);
|
||||
spawn = Instantiate(obstacleList[selection], new Vector3(0, 0, lastSpawn.transform.position.z+(25*size)-12.5f), Quaternion.identity) as GameObject;
|
||||
countdownTime = 3.0f;
|
||||
} else {
|
||||
selection = Random.Range(0, easyObstacleList.Length);
|
||||
spawn = Instantiate(easyObstacleList[selection], new Vector3(0, 0, lastSpawn.transform.position.z+(25*size)-12.5f), Quaternion.identity) as GameObject;
|
||||
|
||||
countdownTime = 7.0f;
|
||||
}
|
||||
|
||||
wallOne = Instantiate(boundaries, new Vector3(((25f*(size)))/2, 0, lastSpawn.transform.position.z+(25*size)-12.5f), Quaternion.identity) as GameObject;
|
||||
|
||||
Reference in New Issue
Block a user