Nearly finished.....

This commit is contained in:
2022-08-31 00:31:02 -07:00
parent 59d65e0e8c
commit 83bd769167
24 changed files with 2828 additions and 42 deletions

View File

@@ -0,0 +1,13 @@
using UnityEngine;
namespace Scampz.GameJam.Assets.Scripts.Player
{
public class OpenVoid : MonoBehaviour
{
private void Update()
{
if (UnlockSanctumState.Instance.VoidOpened)
gameObject.SetActive(false);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ac239a5b51bd7c84d8abe88686241cf1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using UnityEngine;
namespace Scampz.GameJam.Assets.Scripts.Player
{
public class TalkedToAirshipGuy : MonoBehaviour
{
public void OnTriggerStay(Collider other)
{
if (Input.GetButton(InputOptions.Submit))
UnlockSanctumState.Instance.TalkedToAirshipGuy = true;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6b68a11e9789f6344a053b00f7cc3dcc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using UnityEngine;
namespace Scampz.GameJam.Assets.Scripts.Player
{
public class TalkedToFrogLady : MonoBehaviour
{
public void OnTriggerStay(Collider other)
{
if (Input.GetButton(InputOptions.Submit))
UnlockSanctumState.Instance.TalkedToFrog = true;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0be6aa3e5193f4f4e91e4b2707b8e1ae
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using UnityEngine;
namespace Scampz.GameJam.Assets.Scripts.Player
{
public class TalkedToIceGuy : MonoBehaviour
{
public void OnTriggerStay(Collider other)
{
if (Input.GetButton(InputOptions.Submit))
UnlockSanctumState.Instance.TalkedToIceGuy = true;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 26df9f81f16eb254dae2480172770084
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,16 @@
using UnityEngine;
namespace Scampz.GameJam.Assets.Scripts.Player
{
public class TalkedToVoid : MonoBehaviour
{
public void OnTriggerStay(Collider other)
{
if (other.CompareTag("Player"))
{
if (Input.GetButton(InputOptions.Submit))
UnlockSanctumState.Instance.VoidOpened = true;
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b45a63a9fe7ce264e9e339f4366a5651
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

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

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c388cea5ac5cb0241bc77335e96e4f59
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: