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.
47 lines
1.1 KiB
47 lines
1.1 KiB
using System;
|
|
using UnityEngine;
|
|
|
|
namespace FX
|
|
{
|
|
// Token: 0x0200076D RID: 1901
|
|
public class FX_ch_035001_Trail : MonoBehaviour
|
|
{
|
|
// Token: 0x06003068 RID: 12392 RVA: 0x00104180 File Offset: 0x00104180
|
|
private void Start()
|
|
{
|
|
this.pID = Shader.PropertyToID(this.valueName);
|
|
this.pID2 = Shader.PropertyToID(this.valueName2);
|
|
this.tr = base.GetComponent<TrailRenderer>();
|
|
}
|
|
|
|
// Token: 0x06003069 RID: 12393 RVA: 0x001041B0 File Offset: 0x001041B0
|
|
private void Update()
|
|
{
|
|
this.tr.materials[0].SetFloat(this.pID, this.value);
|
|
float x = base.transform.position.x;
|
|
this.tr.materials[0].SetFloat(this.pID2, x);
|
|
}
|
|
|
|
// Token: 0x040056BD RID: 22205
|
|
private int pID;
|
|
|
|
// Token: 0x040056BE RID: 22206
|
|
private int pID2;
|
|
|
|
// Token: 0x040056BF RID: 22207
|
|
private TrailRenderer tr;
|
|
|
|
// Token: 0x040056C0 RID: 22208
|
|
[NonSerialized]
|
|
public float value = 1f;
|
|
|
|
// Token: 0x040056C1 RID: 22209
|
|
[SerializeField]
|
|
private string valueName = "_Opacity";
|
|
|
|
// Token: 0x040056C2 RID: 22210
|
|
[SerializeField]
|
|
private string valueName2 = "_AbsPosX";
|
|
}
|
|
}
|