a
This commit is contained in:
@@ -0,0 +1,278 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000655 RID: 1621
|
||||
[Token(Token = "0x2000655")]
|
||||
public class LineRendererTrail : CustomTrail
|
||||
{
|
||||
// Token: 0x17000837 RID: 2103
|
||||
// (get) Token: 0x06002F28 RID: 12072 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// (set) Token: 0x06002F29 RID: 12073 RVA: 0x000C0D7C File Offset: 0x000BEF7C
|
||||
[Token(Token = "0x17000837")]
|
||||
public override Color INCNKMHCJDM
|
||||
{
|
||||
[Token(Token = "0x6002F28")]
|
||||
[Address(RVA = "0x9E8760", Offset = "0x9E7560", VA = "0x1809E8760", Slot = "4")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x6002F29")]
|
||||
[Address(RVA = "0xB43E40", Offset = "0xB42C40", VA = "0x180B43E40", Slot = "5")]
|
||||
set
|
||||
{
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
if (pclmnnehlng != 0)
|
||||
{
|
||||
int num = 0;
|
||||
float mojfleekjln = this.MOJFLEEKJLN;
|
||||
if (num < pclmnnehlng.Length)
|
||||
{
|
||||
pclmnnehlng[num].startColor = num;
|
||||
this.PCLMNNEHLNG[num].endColor = num;
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
num++;
|
||||
}
|
||||
Renderer startCap = this.startCap;
|
||||
int num2 = 0;
|
||||
int num3 = 0;
|
||||
if (startCap != num3)
|
||||
{
|
||||
Material material = this.startCap.GetMaterial();
|
||||
int oafffhbngjc = LineRendererTrail.OAFFFHBNGJC;
|
||||
material.SetColor(oafffhbngjc, num2);
|
||||
}
|
||||
Renderer endCap = this.endCap;
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
if (endCap != num5)
|
||||
{
|
||||
Material material2 = this.endCap.GetMaterial();
|
||||
int oafffhbngjc2 = LineRendererTrail.OAFFFHBNGJC;
|
||||
material2.SetColor(oafffhbngjc2, num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000838 RID: 2104
|
||||
// (get) Token: 0x06002F2A RID: 12074 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// (set) Token: 0x06002F2B RID: 12075 RVA: 0x000C0E4C File Offset: 0x000BF04C
|
||||
[Token(Token = "0x17000838")]
|
||||
public override Vector2 LEHGHMKCEKD
|
||||
{
|
||||
[Token(Token = "0x6002F2A")]
|
||||
[Address(RVA = "0xB43E20", Offset = "0xB42C20", VA = "0x180B43E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x6002F2B")]
|
||||
[Address(RVA = "0xB441F0", Offset = "0xB42FF0", VA = "0x180B441F0", Slot = "7")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002F2B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void LineRendererTrail::set_Widths(UnityEngine.Vector2)
|
||||
|
||||
---> System.ArgumentOutOfRangeException: length ('-1') must be a non-negative value. (Parameter 'length')
|
||||
Actual value was -1.
|
||||
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
|
||||
at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
||||
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 403
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 117
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000839 RID: 2105
|
||||
// (get) Token: 0x06002F2C RID: 12076 RVA: 0x000C0F38 File Offset: 0x000BF138
|
||||
[Token(Token = "0x17000839")]
|
||||
protected override bool ENAJHFPFFBJ
|
||||
{
|
||||
[Token(Token = "0x6002F2C")]
|
||||
[Address(RVA = "0xB43980", Offset = "0xB42780", VA = "0x180B43980", Slot = "9")]
|
||||
get
|
||||
{
|
||||
if (!this.ONHIHPLHNML)
|
||||
{
|
||||
}
|
||||
return this.scaleTexture;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002F2D RID: 12077 RVA: 0x000C0F58 File Offset: 0x000BF158
|
||||
[Token(Token = "0x6002F2D")]
|
||||
[Address(RVA = "0xB43490", Offset = "0xB42290", VA = "0x180B43490", Slot = "12")]
|
||||
protected override void Awake()
|
||||
{
|
||||
LineRenderer[] array = new LineRenderer[this.materials.Length];
|
||||
this.PCLMNNEHLNG = array;
|
||||
LineRenderer[] componentsInChildren = base.GetComponentsInChildren<LineRenderer>(true);
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
if (num < pclmnnehlng.Length && num2 < componentsInChildren.Length)
|
||||
{
|
||||
LineRenderer lineRenderer = componentsInChildren[num2];
|
||||
if (lineRenderer != 0)
|
||||
{
|
||||
}
|
||||
pclmnnehlng[0] = lineRenderer;
|
||||
num2++;
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
}
|
||||
GameObject gameObject = base.gameObject;
|
||||
LineRenderer[] pclmnnehlng3 = this.PCLMNNEHLNG;
|
||||
if (num2 < pclmnnehlng3.Length)
|
||||
{
|
||||
if (num2 > 0)
|
||||
{
|
||||
Transform transform = new GameObject(this.materials[num2].name).transform;
|
||||
Transform transform2 = base.transform;
|
||||
int num3 = 0;
|
||||
transform.SetParent(transform2, num3 != 0);
|
||||
}
|
||||
LineRenderer lineRenderer2 = gameObject.AddComponent<LineRenderer>();
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
if (num2 < componentsInChildren.Length)
|
||||
{
|
||||
global::UnityEngine.Object.Destroy(componentsInChildren[num2]);
|
||||
num2++;
|
||||
}
|
||||
LineRenderer[] pclmnnehlng4 = this.PCLMNNEHLNG;
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
if (num5 < pclmnnehlng4.Length)
|
||||
{
|
||||
LineRenderer lineRenderer3 = pclmnnehlng4[num4];
|
||||
Material material = global::UnityEngine.Object.Instantiate<Material>(this.materials[num4]);
|
||||
lineRenderer3.SetMaterial(material);
|
||||
Material sharedMaterial = this.PCLMNNEHLNG[num4].GetSharedMaterial();
|
||||
int oddafccfnlh = LineRendererTrail.ODDAFCCFNLH;
|
||||
Texture textureImpl = sharedMaterial.GetTextureImpl(oddafccfnlh);
|
||||
int num6 = 0;
|
||||
if (textureImpl != num6 && this.scaleTexture)
|
||||
{
|
||||
this.ONHIHPLHNML = true;
|
||||
}
|
||||
LineRenderer lineRenderer4 = this.PCLMNNEHLNG[num4];
|
||||
LineRenderer lineRenderer5 = this.PCLMNNEHLNG[num4];
|
||||
bool receiveShadows = this.receiveShadows;
|
||||
lineRenderer5.receiveShadows = receiveShadows;
|
||||
LineRenderer[] pclmnnehlng5 = this.PCLMNNEHLNG;
|
||||
num4++;
|
||||
while (pclmnnehlng5 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
base.Awake();
|
||||
}
|
||||
|
||||
// Token: 0x06002F2E RID: 12078 RVA: 0x000C1148 File Offset: 0x000BF348
|
||||
[Token(Token = "0x6002F2E")]
|
||||
[Address(RVA = "0xB439A0", Offset = "0xB427A0", VA = "0x180B439A0")]
|
||||
protected void OnDestroy()
|
||||
{
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
int num = 0;
|
||||
if (num < pclmnnehlng.Length)
|
||||
{
|
||||
global::UnityEngine.Object.Destroy(pclmnnehlng[num].GetSharedMaterial());
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002F2F RID: 12079 RVA: 0x000C118C File Offset: 0x000BF38C
|
||||
[Token(Token = "0x6002F2F")]
|
||||
[Address(RVA = "0xB43A70", Offset = "0xB42870", VA = "0x180B43A70", Slot = "8")]
|
||||
protected override void PADKNHHAGDN()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.PCLMNNEHLNG != num)
|
||||
{
|
||||
int num2 = this.CHMFEPLLNBI.MEPGPGKFENE;
|
||||
Vector2 zero = Vector2.zero;
|
||||
if (num2 > 0)
|
||||
{
|
||||
GPFLNFOKEIA<Vector3> chmfepllnbi = this.CHMFEPLLNBI;
|
||||
this.PADKNHHAGDN();
|
||||
float length = base.CDLLJHNCLDC;
|
||||
}
|
||||
LineRenderer[] pclmnnehlng = this.PCLMNNEHLNG;
|
||||
if (num < pclmnnehlng.Length)
|
||||
{
|
||||
pclmnnehlng[num].positionCount = num2;
|
||||
if (num2 > 0)
|
||||
{
|
||||
LineRenderer lineRenderer = this.PCLMNNEHLNG[num];
|
||||
Vector3[] ncdjhkgkfed = LineRendererTrail.NCDJHKGKFED;
|
||||
lineRenderer.SetPositions(ncdjhkgkfed);
|
||||
this.PADKNHHAGDN();
|
||||
Material sharedMaterial = this.PCLMNNEHLNG[num].GetSharedMaterial();
|
||||
int oddafccfnlh = LineRendererTrail.ODDAFCCFNLH;
|
||||
sharedMaterial.SetTextureScaleImpl(oddafccfnlh, zero);
|
||||
}
|
||||
LineRenderer[] pclmnnehlng2 = this.PCLMNNEHLNG;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002F30 RID: 12080 RVA: 0x000C1254 File Offset: 0x000BF454
|
||||
[Token(Token = "0x6002F30")]
|
||||
[Address(RVA = "0xB43DF0", Offset = "0xB42BF0", VA = "0x180B43DF0")]
|
||||
public LineRendererTrail()
|
||||
{
|
||||
Color white = Color.white;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002708 RID: 9992
|
||||
[Token(Token = "0x4002708")]
|
||||
private static readonly Vector3[] NCDJHKGKFED = new Vector3[128];
|
||||
|
||||
// Token: 0x04002709 RID: 9993
|
||||
[Token(Token = "0x4002709")]
|
||||
private static readonly int OAFFFHBNGJC = PAMNDKEGFFG.CCHOFPAFEHO;
|
||||
|
||||
// Token: 0x0400270A RID: 9994
|
||||
[Token(Token = "0x400270A")]
|
||||
private static readonly int ODDAFCCFNLH = PAMNDKEGFFG.BMBHIOLHCLI;
|
||||
|
||||
// Token: 0x0400270B RID: 9995
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x400270B")]
|
||||
[SerializeField]
|
||||
[Header("Texture")]
|
||||
private bool scaleTexture;
|
||||
|
||||
// Token: 0x0400270C RID: 9996
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x400270C")]
|
||||
private LineRenderer[] PCLMNNEHLNG;
|
||||
|
||||
// Token: 0x0400270D RID: 9997
|
||||
[FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x400270D")]
|
||||
private Color HIEMIKKPMBN;
|
||||
|
||||
// Token: 0x0400270E RID: 9998
|
||||
[FieldOffset(Offset = "0xB0")]
|
||||
[Token(Token = "0x400270E")]
|
||||
private Vector2 GIEOAAOIIAH;
|
||||
|
||||
// Token: 0x0400270F RID: 9999
|
||||
[FieldOffset(Offset = "0xB8")]
|
||||
[Token(Token = "0x400270F")]
|
||||
private bool ONHIHPLHNML;
|
||||
}
|
||||
Reference in New Issue
Block a user