Beispiel #1
0
    public void SetProfileMarkStatusByID(ulong id, EPaperworkMarkType status)
    {
        for (int i = 0; i < CurrentDayProfiles.Count; ++i)
        {
            if (CurrentDayProfiles[i].ProfileID == id)
            {
                CurrentDayProfiles[i].MarkStatus = status;
                SaveManager.instance.MarkSavegameDirty();
                return;
            }
        }

        Debug.LogError("Didn't find profile status! " + id);
    }
Beispiel #2
0
    public void Show(Paperwork pendingPaperwork, EPaperworkMarkType pendingMarkType, PaperworkMark pendingMark)
    {
        PendingPaperwork = pendingPaperwork;
        if (PendingPaperwork.GetProfile() == GameManager.instance.GrimReaperPaperworkProfile)
        {
            if (pendingMarkType == EPaperworkMarkType.Die)
            {
                TextPrompt.text = TextSelfie;
            }
            else
            {
                TextPrompt.text = TextSelfieLive;
            }
        }
        else if (PendingPaperwork.GetProfile() == GameManager.instance.FatePaperworkProfile)
        {
            if (pendingMarkType == EPaperworkMarkType.Die)
            {
                TextPrompt.text = TextUsurpator;
            }
            else
            {
                TextPrompt.text = TextUsurpatorLive;
            }
        }
        else
        {
            TextPrompt.text = TextDefault;
        }
        PendingMarkType = pendingMarkType;
        PendingMark     = pendingMark;

        if (SaveManager.instance.CurrentOptions.SkipMarkPopUp)
        {
            ToggleOptOut.gameObject.SetActive(false);
        }
        else
        {
            ToggleOptOut.isOn = false;
            ToggleOptOut.gameObject.SetActive(true);
        }

        gameObject.SetActive(true);
        Cursor.visible = true;
    }