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; } } }
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); }
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); }
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 } } }
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; } }