Start to integrate the artwork

This commit is contained in:
WillJeynes
2026-08-28 20:24:18 +01:00
parent 88b0426f11
commit 0f407509c4
43 changed files with 13412 additions and 43 deletions
+9 -4
View File
@@ -1,8 +1,10 @@
using System;
using System.Collections.Generic;
using DefaultNamespace;
using UnityEditor;
using UnityEngine;
using Utils;
using Utils.Utils;
using Random = UnityEngine.Random;
public class GuardManager : MonoBehaviour, IDescribable
@@ -10,8 +12,7 @@ public class GuardManager : MonoBehaviour, IDescribable
public string type;
public string mod;
public GameObject hat;
public string puzzle;
@@ -19,16 +20,20 @@ public class GuardManager : MonoBehaviour, IDescribable
private Light focusLight;
public int isfocussed;
[SerializeField]
private List<GameEntry<Material>> GuardMaterials;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
if (mod == "SHORT")
{
transform.localScale = new Vector3(1f, 0.1f, 1f);
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("OTHER");
}
else if (mod == "HAT")
{
Instantiate(hat, transform);
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("HAT");
}
focusLight = transform.FindChildRecursive("FocusLight").GetComponent<Light>();