Nearly finished.....
This commit is contained in:
32
Assets/Scripts/Player/UnlockSanctumState.cs
Normal file
32
Assets/Scripts/Player/UnlockSanctumState.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam.Assets.Scripts
|
||||
{
|
||||
public class UnlockSanctumState : MonoBehaviour
|
||||
{
|
||||
public bool TalkedToFrog = false;
|
||||
public bool TalkedToIceGuy = false;
|
||||
public bool TalkedToAirshipGuy = false;
|
||||
public bool SanctumUnlocked = false;
|
||||
public bool VoidOpened = false;
|
||||
|
||||
public static UnlockSanctumState Instance;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance != null && Instance != this)
|
||||
{
|
||||
Destroy(this);
|
||||
return;
|
||||
}
|
||||
Instance = this;
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (TalkedToFrog && TalkedToIceGuy && TalkedToAirshipGuy)
|
||||
SanctumUnlocked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user