Start to integrate the artwork
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user