18 lines
392 B
C#
18 lines
392 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Convention.VFX
|
||
|
{
|
||
|
public class GridSpriteFullSetter : MonoBehaviour
|
||
|
{
|
||
|
[Resources]public Transform target;
|
||
|
[Resources]public MeshRenderer MyMeshRenderer;
|
||
|
|
||
|
void Update()
|
||
|
{
|
||
|
MyMeshRenderer.material.SetVector("_Offset", target.position);
|
||
|
}
|
||
|
}
|
||
|
}
|