コード例 #1
0
    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);
    }
コード例 #2
0
 //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));
     }
 }
コード例 #3
0
 //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));
     }
 }
コード例 #4
0
 public void StartDeconstructionPreparation()
 {
     if (ServicedCharacter != null)
     {
         ServicedCharacter.InterruptActivity();
         ServicedCharacter = null;
     }
     haltedForDeconstruction = true;
     reservation             = null;
     serviceDuration         = Prototype.ServiceDuration;
     InputStorage.StartDeconstructionPreparation();
 }
コード例 #5
0
    public void StartDeconstructionPreparation()
    {
        if (WorkingCharacter != null)
        {
            WorkingCharacter.InterruptActivity();
            WorkingCharacter = null;
        }

        ProductionStarted = false;
        Halted            = true;
        jobReservation    = null;
        InputStorage.StartDeconstructionPreparation();
        preparingForDeconstruction = true;
    }
コード例 #6
0
    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);
    }
コード例 #7
0
    // 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);
        }
    }
コード例 #8
0
 protected override void TaskOnClick()
 {
     InputStorage.WriteQuestion(inputText.text.ToString());
 }
コード例 #9
0
 public bool IsReadyForDeconstruction()
 {
     return(ServicedCharacter == null &&
            InputStorage.IsReadyForDeconstruction());
 }
コード例 #10
0
 public void CancelDeconstructionPreparation()
 {
     InputStorage.CancelDeconstructionPreparation();
     haltedForDeconstruction = false;
 }
コード例 #11
0
 public bool IsReadyForDeconstruction()
 {
     return(InputStorage.IsReadyForDeconstruction() &&
            OutputStorage.IsReadyForDeconstruction() &&
            Halted && WorkingCharacter == null);
 }
コード例 #12
0
 public void CancelDeconstructionPreparation()
 {
     Halted = false;
     InputStorage.CancelDeconstructionPreparation();
     preparingForDeconstruction = false;
 }