Commit 82efbfdd authored by Ben Huber's avatar Ben Huber
Browse files

achievement: euphoric jump

parent d5dfeb6e
......@@ -27,8 +27,9 @@ public class AudioTrigger : MonoBehaviour {
if(Narration.instance.Play(Menu.LangIsEnglish()?voiceLine_EN:voiceLine, Menu.LangIsEnglish() ? text_EN : text, textColor)) {
if (!repeatable) {
triggered[text] = true;
Debug.Log("I know "+triggered.Count+", read: " + triggered.Count(t => t.Value));
// check if this was the last.... dirty hack: assume fixed number of narration bits that can be found
if (triggered.Count == 13 && triggered.All(t => t.Value)) {
if (triggered.Count == 12 && triggered.All(t => t.Value)) {
if (SteamManager.Initialized) {
SteamUserStats.SetAchievement("ALL_AUDIO");
Debug.Log("StoreStats(): " + SteamUserStats.StoreStats());
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Steamworks;
public class Hivemind : MonoBehaviour {
public List<floatingCubeparticles> free = new List<floatingCubeparticles>();
......
......@@ -25,7 +25,8 @@ public class InfoActivatable : Activatable {
// achievement: check if all texts were read (dirty hack: check if a fixed number of texts was discovered)
read[text] = true;
if (read.Count == 17 && read.All(t => t.Value)) {
Debug.Log("read "+read.Count+", new?: '" + text + "'");
if (read.Count == 16 && read.All(t => t.Value)) {
if (SteamManager.Initialized) {
SteamUserStats.SetAchievement("ALL_TEXT");
Debug.Log("StoreStats(): " + SteamUserStats.StoreStats());
......
......@@ -5,7 +5,7 @@ using UnityEngine;
public class Music : MonoBehaviour
{
public static Music instance;
void Start()
void Awake()
{
if (!instance)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment