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.
29 lines
627 B
29 lines
627 B
using System;
|
|
using UnityEngine;
|
|
|
|
namespace FX
|
|
{
|
|
// Token: 0x02000760 RID: 1888
|
|
public class FX_Trail_ScaleToWidth : MonoBehaviour
|
|
{
|
|
// Token: 0x0600303B RID: 12347 RVA: 0x00102924 File Offset: 0x00102924
|
|
private void Start()
|
|
{
|
|
this.tRenderer = base.GetComponent<TrailRenderer>();
|
|
}
|
|
|
|
// Token: 0x0600303C RID: 12348 RVA: 0x00102934 File Offset: 0x00102934
|
|
private void Update()
|
|
{
|
|
this.tRenderer.widthMultiplier = base.transform.lossyScale.x;
|
|
if (base.transform.lossyScale.x == 0f)
|
|
{
|
|
this.tRenderer.Clear();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400561A RID: 22042
|
|
private TrailRenderer tRenderer;
|
|
}
|
|
}
|