Skip to content

Commit

Permalink
Extension Period Final Release
Browse files Browse the repository at this point in the history
  • Loading branch information
SirVeggie authored Feb 6, 2020
2 parents fe668e0 + 9987037 commit 16fb046
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void NeedleWithSyringeInsertedIntoBottle(CallbackData data) {
private void TakingMedicineFromBottle(CallbackData data) {
Syringe s = data.DataObject as Syringe;
if (s.BottleContainer.Capacity == 100000) {
CreateTaskMistake("Ruiskulla otettiin väärää lääkettä", -5);
CreateTaskMistake("Ruiskulla otettiin väärää lääkettä", 5);
}
}

Expand Down
23 changes: 22 additions & 1 deletion Assets/Scripts/UISystem/Description.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,28 @@ void Update() {
}

private void SetText() {
string text = "<color=#000000> " + G.Instance.Progress.CurrentPackage.name + " </color> \n";
string packageName = "";
if (G.Instance.Progress.CurrentPackage.activeTasks.Count <= 0) {
currentTextField.text = "<color=#0be325> Pisteet oikealla \n-----></color>";
return;
}


switch (G.Instance.Progress.CurrentPackage.name) {
case PackageName.EquipmentSelection:
packageName = "Työvälineiden valinta";
break;
case PackageName.Workspace:
packageName = "Työskentely Tila";
break;
case PackageName.CleanUp:
packageName = "Tilan Siivoaminen";
break;
}



string text = "<color=#000000> " + packageName + " </color> \n";
text += UISystem.Instance.Descript;
currentTextField.text = text;
}
Expand Down
Loading

0 comments on commit 16fb046

Please sign in to comment.