64 lines
1.7 KiB
C#
64 lines
1.7 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GameProgressManager : MonoBehaviour
|
|
{
|
|
public bool playerControllerShouldBeEnabledOnGameLoad = true;
|
|
public bool playerCameraControllerShouldBeEnabledOnGameLoad = true;
|
|
public bool playerSanityShouldBeEnabledOnGameLoad = true;
|
|
public bool initialCutscenePlayed = false;
|
|
public bool firefliesAreDead = false;
|
|
public bool PocketWatchIsObtained;
|
|
public bool FirstEverFoundPillCollected;
|
|
public bool FlashlightIsObtained;
|
|
public bool CandleHolderIsObtained;
|
|
public bool loadCurrentStorylineState;
|
|
public bool loadCurrentGlobalStorylineState;
|
|
|
|
[Header("StoylineManagers")]
|
|
public string currentStorylineState;
|
|
|
|
public string currentGlobalStorylineState;
|
|
|
|
//StorylineMirrorLibraryManager storylineMirrorLibraryManager;
|
|
|
|
private static GameProgressManager _instance;
|
|
public static GameProgressManager GetInstance() { return _instance; }
|
|
|
|
private void Awake()
|
|
{
|
|
if (!_instance)
|
|
{
|
|
_instance = this;
|
|
}
|
|
|
|
//storylineMirrorLibraryManager = GameObject.FindObjectOfType<StorylineMirrorLibraryManager>();
|
|
//if (storylineMirrorLibraryManager != null)
|
|
//{
|
|
// // Object found! Do something with it.
|
|
// Debug.Log("Object found: " + storylineMirrorLibraryManager.name);
|
|
//}
|
|
//else
|
|
//{
|
|
// // Object not found.
|
|
// Debug.LogWarning("Object not found");
|
|
//}
|
|
}
|
|
|
|
public void IntroCutscenePlayed()
|
|
{
|
|
initialCutscenePlayed = true;
|
|
}
|
|
|
|
public void FirefliesAreDead()
|
|
{
|
|
firefliesAreDead = true;
|
|
}
|
|
|
|
public void UpdateGameProgress()
|
|
{
|
|
//---
|
|
}
|
|
}
|