You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
750 B

using System;
using UnityEngine;
namespace FX
{
// Token: 0x0200076B RID: 1899
public class FX_ch_002022 : MonoBehaviour
{
// Token: 0x06003061 RID: 12385 RVA: 0x0010402C File Offset: 0x0010402C
private void Start()
{
this.pID = Shader.PropertyToID(this.valueName);
this.tr = base.GetComponent<Renderer>();
}
// Token: 0x06003062 RID: 12386 RVA: 0x0010404C File Offset: 0x0010404C
private void Update()
{
Vector3 position = base.transform.position;
this.tr.materials[0].SetVector(this.pID, position);
}
// Token: 0x040056B7 RID: 22199
private int pID;
// Token: 0x040056B8 RID: 22200
private Renderer tr;
// Token: 0x040056B9 RID: 22201
[SerializeField]
private string valueName = "_AbsPos";
}
}