コード例 #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.CompareTag("Player"))
     {
         if (!hasShownDialog)
         {
             NewsProgression.AddNewsForNextDay(NewsProgression.ParallelResearchNews());
             DiggingUIOverlay.ShowPopup("What is this? It looks so strange, like it's from another world...", "artifact");
             hasShownDialog = true;
         }
     }
 }
コード例 #2
0
ファイル: JournalPage.cs プロジェクト: AlmostMatt/LD48
    private Document JournalDocumentFour()
    {
        NewsProgression.AddNewsForNextDay(NewsProgression.AddEquilibriumNews());
        Document d = new Document();

        d.name = "[Found Journal] June 7";
        d.body = "June 7:\r\n" +
                 "Today is the second day since I lost my memory.\r\n" +
                 "It’s good that I have this journal to give me an idea of my past, but I can’t seem to find my way back...\r\n" +
                 "Am I just stuck here forever?\r\n" +
                 "Huh, there's something odd about these lights...";
        return(d);
    }
コード例 #3
0
ファイル: JournalPage.cs プロジェクト: AlmostMatt/LD48
    private Document JournalDocumentThree()
    {
        NewsProgression.AddNewsForNextDay(NewsProgression.AddSpaceTearNews());
        Document d = new Document();

        d.name = "[Found Journal] June 6";
        d.body = "June 6:\r\n" +
                 "Who am I?\r\n" +
                 "Where am I!?\r\n" +
                 "What am I doing here ?!!?!\r\n" +
                 "Don’t panic, don’t panic, don’t panic…";
        return(d);
    }
コード例 #4
0
ファイル: LookalikeBody.cs プロジェクト: AlmostMatt/LD48
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.CompareTag("Player"))
        {
            SaveData saveData = SaveData.Get();
            if (!saveData.foundBody)
            {
                NewsProgression.AddNewsForNextDay(NewsProgression.EarthquakeNews());
                saveData.foundBody = true;
                DiggingUIOverlay.ShowPopup("Goodness gracious, is this a dead body? Why does he look... just like me!?", "deadbody");

                saveData.musicStage++;
                saveData.activeShopItem++;

                // todo: email/document
            }
        }
    }
コード例 #5
0
ファイル: ShopView2.cs プロジェクト: AlmostMatt/LD48
    public void PurchaseItem()
    {
        ShopItem item = shopItemList[mActiveItem];

        SaveData.Get().debt += item.priceInDollars;
        SaveData.Get().IncreaseMinimumPayment(100);
        shopItemList[mActiveItem] = new ShopItem(item.name, item.description, item.imageName, item.priceInDollars, item.effectType, item.effectValue, true);
        // The effect of the item
        switch (item.effectType)
        {
        case "DigSkill":
            if (item.effectValue == 1)
            {
                NewsProgression.AddNewsForNextDay(NewsProgression.DebtNews());
            }
            SaveData.Get().digSkill = Mathf.Max(SaveData.Get().digSkill, item.effectValue);
            break;

        default:
            Debug.LogError("Purchase an item with unknown effect type: " + item.effectType);
            break;
        }
    }