soooo manyyy integrationsssssss

This commit is contained in:
WillJeynes
2026-08-30 00:36:55 +01:00
parent 33a5ff47e3
commit 4158e7acac
44 changed files with 3567 additions and 210 deletions
+3
View File
@@ -4,6 +4,7 @@ using UnityEngine.InputSystem;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections;
using Utils;
public class CameraController : MonoBehaviour
{
@@ -169,6 +170,8 @@ public class CameraController : MonoBehaviour
isSequencePlaying = true;
RemoveHighlight();
activeDoor.transform.FindChildRecursive("DOORPANEL").gameObject.GetComponent<Renderer>().material = activeDoor.openMaterial;
// 1. TRIPWIRE: Check if the slots are empty!
if (activeDoor.type == "DEATH")
{
+17 -6
View File
@@ -15,9 +15,6 @@ public class DoorManager : MonoBehaviour, IDescribable
public string mod;
public Material blueMaterial;
public Material redMaterial;
private Light focusLight;
public int isfocussed;
@@ -28,6 +25,13 @@ public class DoorManager : MonoBehaviour, IDescribable
public CinemachineCamera deathCamera;
public CinemachineSplineDolly deathSplineDolly;
public GameObject greenlight;
public GameObject redlight;
public GameObject bluelight;
public GameObject yellowlight;
public Material openMaterial;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
@@ -42,20 +46,23 @@ public class DoorManager : MonoBehaviour, IDescribable
if (mod == "BLUE")
if (mod.EndsWith("BLUE"))
{
// this.GetComponentInChildren<Renderer>().material = blueMaterial;
indicatorLight.initialColor = Color.blue;
bluelight.SetActive(true);
}
else if (mod == "RED")
else if (mod.EndsWith("RED"))
{
// this.GetComponentInChildren<Renderer>().material = redMaterial;
indicatorLight.initialColor = Color.red;
redlight.SetActive(true);
}
else if (mod == "GREEN")
else if (mod.EndsWith("GREEN"))
{
// this.GetComponentInChildren<Renderer>().material = redMaterial;
indicatorLight.initialColor = Color.green;
greenlight.SetActive(true);
}
else if (mod == "#ONE")
{
@@ -65,6 +72,10 @@ public class DoorManager : MonoBehaviour, IDescribable
{
manyDeath.gameObject.SetActive(true);
}
else
{
yellowlight.SetActive(true);
}
focusLight = transform.FindChildRecursive("FocusLight").GetComponent<Light>();
}
+13
View File
@@ -39,6 +39,11 @@ public class GuardManager : MonoBehaviour, IDescribable
{
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("JOKER");
}
else if (mod == "#LEFT" || mod == "#RIGHT")
{
//borkborkbork
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("BLIND");
}
focusLight = transform.FindChildRecursive("FocusLight").GetComponent<Light>();
}
@@ -204,6 +209,14 @@ public class GuardManager : MonoBehaviour, IDescribable
{
return "the right horse";
}
else if (mod == "#LEFT")
{
return "the left guard";
}
else if (mod == "#RIGHT")
{
return "the right guard";
}
else
{
return "the red guard";
+24
View File
@@ -0,0 +1,24 @@
using UnityEngine;
public class PlaneAnimation : MonoBehaviour
{
[SerializeField] private float frameRate = 8f;
private Renderer rend;
private int frame;
void Start()
{
rend = GetComponent<Renderer>();
}
void Update()
{
frame = (int)(Time.time * frameRate) % 4;
float offset = frame / 4f;
rend.material.mainTextureScale = new Vector2(0.25f, 1f);
rend.material.mainTextureOffset = new Vector2(offset, 0f);
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 889b9cd277b369fe5bd4b7c631ca1150