从旧版中移植,Prefab未确认
This commit is contained in:
17
Convention/[Art]/GridFull/Grid2DFull/GridSpriteFullSetter.cs
Normal file
17
Convention/[Art]/GridFull/Grid2DFull/GridSpriteFullSetter.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user