public string DEBUG_GetSelectionText() { string s = ""; s += "Wstrzymane: " + Halted.ToString() + "\n"; s += "Pracująca postać: "; if (WorkingCharacter != null) { s += WorkingCharacter.Name; } s += "\n"; s += "Pozostały czas produkcji: "; if (ProductionStarted) { s += productionTimeLeft + "\n"; } else { s += "nie rozpoczęta \n"; } if (RemainingProductionCycles >= 0) { s += "Pozostałe cykle produkcji: " + RemainingProductionCycles + "\n"; } s += InputStorage.DEBUG_GetSelectionText(); s += OutputStorage.DEBUG_GetSelectionText(); return(s); }
//go to next item in the list public void Next() { if (itemList.Count > currentIndex + 1) { currentIndex++; sr.sprite = itemList[currentIndex]; InputStorage.InsertIntoCharList(typeIndex, currentIndex); Debug.Log(InputStorage.ReadFromCharList(typeIndex)); } }
//go to previous item in the list public void Previous() { if (currentIndex > 0) { currentIndex--; sr.sprite = itemList[currentIndex]; InputStorage.InsertIntoCharList(typeIndex, currentIndex); Debug.Log(InputStorage.ReadFromCharList(typeIndex)); } }
public void StartDeconstructionPreparation() { if (ServicedCharacter != null) { ServicedCharacter.InterruptActivity(); ServicedCharacter = null; } haltedForDeconstruction = true; reservation = null; serviceDuration = Prototype.ServiceDuration; InputStorage.StartDeconstructionPreparation(); }
public void StartDeconstructionPreparation() { if (WorkingCharacter != null) { WorkingCharacter.InterruptActivity(); WorkingCharacter = null; } ProductionStarted = false; Halted = true; jobReservation = null; InputStorage.StartDeconstructionPreparation(); preparingForDeconstruction = true; }
public string DEBUG_GetSelectionText() { string s = ""; s += "Korzystająca postać: "; if (ServicedCharacter != null) { s += ServicedCharacter.Name + "\n"; s += "Pozostały czas produkcji: "; s += serviceDuration + "\n"; } s += "\n"; s += "Rezerwacja: "; if (reservation != null) { s += reservation.Name + "\n"; } s += InputStorage.DEBUG_GetSelectionText(); return(s); }
// Start is called before the first frame update void Start() { InputStorage.WriteAnswer(0, "je bent kk pussy"); InputStorage.WriteAnswer(0, "ga leven zoeken"); InputStorage.WriteAnswer(1, "wfawegehn"); InputStorage.WriteAnswer(1, "awefethytukui"); List <string> list0 = InputStorage.GetAnswers(0); foreach (string s in list0) { Debug.Log(s); } List <string> list1 = InputStorage.GetAnswers(1); foreach (string s in list1) { Debug.Log(s); } }
protected override void TaskOnClick() { InputStorage.WriteQuestion(inputText.text.ToString()); }
public bool IsReadyForDeconstruction() { return(ServicedCharacter == null && InputStorage.IsReadyForDeconstruction()); }
public void CancelDeconstructionPreparation() { InputStorage.CancelDeconstructionPreparation(); haltedForDeconstruction = false; }
public bool IsReadyForDeconstruction() { return(InputStorage.IsReadyForDeconstruction() && OutputStorage.IsReadyForDeconstruction() && Halted && WorkingCharacter == null); }
public void CancelDeconstructionPreparation() { Halted = false; InputStorage.CancelDeconstructionPreparation(); preparingForDeconstruction = false; }