First Commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
/*
|
||||
using RogueUtils.Data;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Golems
|
||||
{
|
||||
public class GhostMemoryLightDirection : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Light m_Light;
|
||||
[SerializeField] private Vector3 m_LightDirectionReference;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
Debug.Assert(m_Light != null);
|
||||
Debug.Assert(m_LightDirectionReference != null);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
m_LightDirectionReference.variable.Value = (m_Light.transform.rotation * Vector3.forward).normalized;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user