You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class LevelSTHP : LevelBase
|
|
|
|
|
{
|
|
|
|
|
public Text[] values;
|
|
|
|
|
|
|
|
|
|
protected override void Awake() {
|
|
|
|
|
base.Awake();
|
|
|
|
|
}
|
|
|
|
|
protected override void Start()
|
|
|
|
|
{
|
|
|
|
|
base.Start();
|
|
|
|
|
}
|
|
|
|
|
public override void StartGame() {
|
|
|
|
|
area.SetActive(true);
|
|
|
|
|
cameraPanel.SetActive(true);
|
|
|
|
|
view.SetActive(true);
|
|
|
|
|
minMap.SetActive(true);
|
|
|
|
|
TaskBase.Instacne.FinishTask(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void setArea(int index) {
|
|
|
|
|
base.setArea(index);
|
|
|
|
|
switch (curArea) {
|
|
|
|
|
case 0:
|
|
|
|
|
values[0].text = "50%";
|
|
|
|
|
values[1].text = "9km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "50dB";
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
values[0].text = "47%";
|
|
|
|
|
values[1].text = "12km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "50dB";
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
values[0].text = "57%";
|
|
|
|
|
values[1].text = "11km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "50dB";
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
values[0].text = "56%";
|
|
|
|
|
values[1].text = "8km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "50dB";
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
values[0].text = "42";
|
|
|
|
|
values[1].text = "13km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "50dB";
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
values[0].text = "67%";
|
|
|
|
|
values[1].text = "7km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "45dB";
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
values[0].text = "60%";
|
|
|
|
|
values[1].text = "8km";
|
|
|
|
|
values[2].text = "35ug";
|
|
|
|
|
values[3].text = "40dB";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|